pub struct ConfigRequirements {Show 26 fields
pub sqlite_home: Option<Sourced<AbsolutePathBuf>>,
pub log_dir: Option<Sourced<AbsolutePathBuf>>,
pub model_catalog_json: Option<Sourced<AbsolutePathBuf>>,
pub check_for_update_on_startup: Option<Sourced<bool>>,
pub allow_login_shell: Option<Sourced<bool>>,
pub feedback: Option<Sourced<FeedbackConfigToml>>,
pub approval_policy: ConstrainedWithSource<AskForApproval>,
pub approvals_reviewer: ConstrainedWithSource<ApprovalsReviewer>,
pub permission_profile: ConstrainedWithSource<PermissionProfile>,
pub windows_sandbox_mode: ConstrainedWithSource<Option<WindowsSandboxModeToml>>,
pub windows_sandbox_private_desktop: Option<Sourced<bool>>,
pub web_search_mode: ConstrainedWithSource<WebSearchMode>,
pub allow_managed_hooks_only: Option<Sourced<bool>>,
pub allow_appshots: Option<Sourced<bool>>,
pub allow_remote_control: Option<Sourced<bool>>,
pub computer_use: Option<Sourced<ComputerUseRequirementsToml>>,
pub feature_requirements: Option<Sourced<FeatureRequirementsToml>>,
pub managed_hooks: Option<ConstrainedWithSource<ManagedHooksRequirementsToml>>,
pub mcp_servers: Option<Sourced<BTreeMap<String, McpServerRequirement>>>,
pub plugins: Option<Sourced<BTreeMap<String, PluginRequirementsToml>>>,
pub marketplaces: Option<Sourced<MarketplaceRequirementsToml>>,
pub exec_policy: Option<Sourced<RequirementsExecPolicy>>,
pub enforce_residency: ConstrainedWithSource<Option<ResidencyRequirement>>,
pub network: Option<Sourced<NetworkConstraints>>,
pub filesystem: Option<Sourced<FilesystemConstraints>>,
pub guardian_policy_config_source: Option<RequirementSource>,
}Expand description
Normalized version of ConfigRequirementsToml after deserialization and
normalization.
Fields§
§sqlite_home: Option<Sourced<AbsolutePathBuf>>§log_dir: Option<Sourced<AbsolutePathBuf>>§model_catalog_json: Option<Sourced<AbsolutePathBuf>>§check_for_update_on_startup: Option<Sourced<bool>>§allow_login_shell: Option<Sourced<bool>>§feedback: Option<Sourced<FeedbackConfigToml>>§approval_policy: ConstrainedWithSource<AskForApproval>§approvals_reviewer: ConstrainedWithSource<ApprovalsReviewer>§permission_profile: ConstrainedWithSource<PermissionProfile>§windows_sandbox_mode: ConstrainedWithSource<Option<WindowsSandboxModeToml>>§windows_sandbox_private_desktop: Option<Sourced<bool>>§web_search_mode: ConstrainedWithSource<WebSearchMode>§allow_managed_hooks_only: Option<Sourced<bool>>§allow_appshots: Option<Sourced<bool>>§allow_remote_control: Option<Sourced<bool>>§computer_use: Option<Sourced<ComputerUseRequirementsToml>>§feature_requirements: Option<Sourced<FeatureRequirementsToml>>§managed_hooks: Option<ConstrainedWithSource<ManagedHooksRequirementsToml>>§mcp_servers: Option<Sourced<BTreeMap<String, McpServerRequirement>>>§plugins: Option<Sourced<BTreeMap<String, PluginRequirementsToml>>>§marketplaces: Option<Sourced<MarketplaceRequirementsToml>>§exec_policy: Option<Sourced<RequirementsExecPolicy>>§enforce_residency: ConstrainedWithSource<Option<ResidencyRequirement>>§network: Option<Sourced<NetworkConstraints>>Managed network constraints derived from requirements.
filesystem: Option<Sourced<FilesystemConstraints>>Managed filesystem constraints derived from requirements.
guardian_policy_config_source: Option<RequirementSource>Source for the managed guardian policy config, when one is configured.
Implementations§
Source§impl ConfigRequirements
impl ConfigRequirements
pub fn exec_policy_source(&self) -> Option<&RequirementSource>
Trait Implementations§
Source§impl Clone for ConfigRequirements
impl Clone for ConfigRequirements
Source§fn clone(&self) -> ConfigRequirements
fn clone(&self) -> ConfigRequirements
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 ConfigRequirements
impl Debug for ConfigRequirements
Source§impl Default for ConfigRequirements
impl Default for ConfigRequirements
Source§impl PartialEq for ConfigRequirements
impl PartialEq for ConfigRequirements
impl StructuralPartialEq for ConfigRequirements
Source§impl TryFrom<ConfigRequirementsWithSources> for ConfigRequirements
impl TryFrom<ConfigRequirementsWithSources> for ConfigRequirements
Source§type Error = ConstraintError
type Error = ConstraintError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl !RefUnwindSafe for ConfigRequirements
impl !UnwindSafe for ConfigRequirements
impl Freeze for ConfigRequirements
impl Send for ConfigRequirements
impl Sync for ConfigRequirements
impl Unpin for ConfigRequirements
impl UnsafeUnpin for ConfigRequirements
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> 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