pub struct ConfigRequirementsToml {Show 30 fields
pub sqlite_home: Option<AbsolutePathBuf>,
pub log_dir: Option<AbsolutePathBuf>,
pub model_catalog_json: Option<AbsolutePathBuf>,
pub check_for_update_on_startup: Option<bool>,
pub allow_login_shell: Option<bool>,
pub feedback: Option<FeedbackConfigToml>,
pub allowed_approval_policies: Option<Vec<AskForApproval>>,
pub allowed_approvals_reviewers: Option<Vec<ApprovalsReviewer>>,
pub allowed_sandbox_modes: Option<Vec<SandboxModeRequirement>>,
pub allowed_permission_profiles: Option<BTreeMap<String, bool>>,
pub default_permissions: Option<String>,
pub remote_sandbox_config: Option<Vec<RemoteSandboxConfigToml>>,
pub allowed_web_search_modes: Option<Vec<WebSearchModeRequirement>>,
pub allow_managed_hooks_only: Option<bool>,
pub allow_appshots: Option<bool>,
pub allow_remote_control: Option<bool>,
pub computer_use: Option<ComputerUseRequirementsToml>,
pub windows: Option<WindowsRequirementsToml>,
pub feature_requirements: Option<FeatureRequirementsToml>,
pub hooks: Option<ManagedHooksRequirementsToml>,
pub mcp_servers: Option<BTreeMap<String, McpServerRequirement>>,
pub plugins: Option<BTreeMap<String, PluginRequirementsToml>>,
pub marketplaces: Option<MarketplaceRequirementsToml>,
pub apps: Option<AppsRequirementsToml>,
pub rules: Option<RequirementsExecPolicyToml>,
pub enforce_residency: Option<ResidencyRequirement>,
pub network: Option<NetworkRequirementsToml>,
pub permissions: Option<PermissionsRequirementsToml>,
pub models: Option<ModelsRequirementsToml>,
pub guardian_policy_config: Option<String>,
}Expand description
Base config deserialized from system requirements.toml or MDM.
Fields§
§sqlite_home: Option<AbsolutePathBuf>§log_dir: Option<AbsolutePathBuf>§model_catalog_json: Option<AbsolutePathBuf>§check_for_update_on_startup: Option<bool>§allow_login_shell: Option<bool>§feedback: Option<FeedbackConfigToml>§allowed_approval_policies: Option<Vec<AskForApproval>>§allowed_approvals_reviewers: Option<Vec<ApprovalsReviewer>>§allowed_sandbox_modes: Option<Vec<SandboxModeRequirement>>§allowed_permission_profiles: Option<BTreeMap<String, bool>>§default_permissions: Option<String>§remote_sandbox_config: Option<Vec<RemoteSandboxConfigToml>>§allowed_web_search_modes: Option<Vec<WebSearchModeRequirement>>§allow_managed_hooks_only: Option<bool>§allow_appshots: Option<bool>§allow_remote_control: Option<bool>§computer_use: Option<ComputerUseRequirementsToml>§windows: Option<WindowsRequirementsToml>§feature_requirements: Option<FeatureRequirementsToml>§hooks: Option<ManagedHooksRequirementsToml>§mcp_servers: Option<BTreeMap<String, McpServerRequirement>>§plugins: Option<BTreeMap<String, PluginRequirementsToml>>§marketplaces: Option<MarketplaceRequirementsToml>§apps: Option<AppsRequirementsToml>§rules: Option<RequirementsExecPolicyToml>§enforce_residency: Option<ResidencyRequirement>§network: Option<NetworkRequirementsToml>§permissions: Option<PermissionsRequirementsToml>§models: Option<ModelsRequirementsToml>§guardian_policy_config: Option<String>Implementations§
Source§impl ConfigRequirementsToml
impl ConfigRequirementsToml
pub fn apply_remote_sandbox_config(&mut self, hostname: Option<&str>)
pub fn is_empty(&self) -> bool
Sourcepub fn apply_exact_to_config(&self, config: &mut ConfigToml)
pub fn apply_exact_to_config(&self, config: &mut ConfigToml)
Applies the requirements whose values replace config values.
This projection is shared by config/read and config-lock export so both surfaces describe the same behavior as the final runtime config.
Sourcepub fn exact_requirement_for_config_path(
&self,
segments: &[String],
) -> Option<&'static str>
pub fn exact_requirement_for_config_path( &self, segments: &[String], ) -> Option<&'static str>
Returns the exact managed field affected by editing segments.
Trait Implementations§
Source§impl Clone for ConfigRequirementsToml
impl Clone for ConfigRequirementsToml
Source§fn clone(&self) -> ConfigRequirementsToml
fn clone(&self) -> ConfigRequirementsToml
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConfigRequirementsToml
impl Debug for ConfigRequirementsToml
Source§impl Default for ConfigRequirementsToml
impl Default for ConfigRequirementsToml
Source§fn default() -> ConfigRequirementsToml
fn default() -> ConfigRequirementsToml
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ConfigRequirementsToml
impl<'de> Deserialize<'de> for ConfigRequirementsToml
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConfigRequirementsToml
impl PartialEq for ConfigRequirementsToml
impl StructuralPartialEq for ConfigRequirementsToml
Auto Trait Implementations§
impl Freeze for ConfigRequirementsToml
impl RefUnwindSafe for ConfigRequirementsToml
impl Send for ConfigRequirementsToml
impl Sync for ConfigRequirementsToml
impl Unpin for ConfigRequirementsToml
impl UnsafeUnpin for ConfigRequirementsToml
impl UnwindSafe for ConfigRequirementsToml
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<T> AsTypeStaticRegistered for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
impl<T> HasTyVTable for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request