pub struct OrgPolicies {
pub blocked_tools: Vec<String>,
pub permission_relay_required: bool,
pub device_allowlist_mode: Option<String>,
pub audit_all_commands: bool,
}Expand description
Organization-level policies that override user settings.
Sent by the backend during authentication. The CLI must enforce these locally for fast UX, but the server also validates server-side.
Fields§
§blocked_tools: Vec<String>Tools that are always blocked by org policy.
permission_relay_required: boolWhether dangerous tool calls must go through permission relay.
device_allowlist_mode: Option<String>Device allowlist mode enforced by org (overrides user preference).
audit_all_commands: boolWhether all commands must be audit-logged.
Trait Implementations§
Source§impl Clone for OrgPolicies
impl Clone for OrgPolicies
Source§fn clone(&self) -> OrgPolicies
fn clone(&self) -> OrgPolicies
Returns a duplicate of the value. Read more
1.0.0 · 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 OrgPolicies
impl Debug for OrgPolicies
Source§impl Default for OrgPolicies
impl Default for OrgPolicies
Source§fn default() -> OrgPolicies
fn default() -> OrgPolicies
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OrgPolicies
impl<'de> Deserialize<'de> for OrgPolicies
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
Auto Trait Implementations§
impl Freeze for OrgPolicies
impl RefUnwindSafe for OrgPolicies
impl Send for OrgPolicies
impl Sync for OrgPolicies
impl Unpin for OrgPolicies
impl UnsafeUnpin for OrgPolicies
impl UnwindSafe for OrgPolicies
Blanket Implementations§
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