aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
26
akode-rs/config/src/browser_use.rs
Normal file
26
akode-rs/config/src/browser_use.rs
Normal file
@@ -0,0 +1,26 @@
|
||||
use crate::AllowDenyRequirementToml;
|
||||
use schemars::JsonSchema;
|
||||
use serde::Deserialize;
|
||||
use serde::Serialize;
|
||||
use std::collections::BTreeMap;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct BrowserUseConfigToml {
|
||||
pub allow_history_access: Option<bool>,
|
||||
pub default_origin_policy: Option<BrowserUseOriginPolicyConfigToml>,
|
||||
pub origins: Option<BTreeMap<String, BrowserUseOriginPolicyConfigToml>>,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug, Clone, Default, PartialEq, Eq, JsonSchema)]
|
||||
#[schemars(deny_unknown_fields)]
|
||||
pub struct BrowserUseOriginPolicyConfigToml {
|
||||
pub access: Option<AllowDenyRequirementToml>,
|
||||
pub downloads: Option<AllowDenyRequirementToml>,
|
||||
pub uploads: Option<AllowDenyRequirementToml>,
|
||||
pub full_cdp_access: Option<AllowDenyRequirementToml>,
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
#[path = "browser_use_tests.rs"]
|
||||
mod tests;
|
||||
Reference in New Issue
Block a user