pub struct SessionManagedPermissions {
pub allow: Option<Vec<String>>,
pub ask: Option<Vec<String>>,
pub deny: Option<Vec<String>>,
pub disable_bypass_permissions_mode: Option<DisableBypassPermissionsMode>,
}Expand description
Enterprise permission policy expressed with the runtime’s managed permission-rule syntax.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§allow: Option<Vec<String>>Permission rules that allow matching operations unless another managed source, deny, or ask rule restricts them.
ask: Option<Vec<String>>Permission rules that require explicit human approval.
deny: Option<Vec<String>>Permission rules that block matching operations. Deny has highest precedence.
disable_bypass_permissions_mode: Option<DisableBypassPermissionsMode>When set to disable, prevents bypass/allow-all permission modes.
Trait Implementations§
Source§impl Clone for SessionManagedPermissions
impl Clone for SessionManagedPermissions
Source§fn clone(&self) -> SessionManagedPermissions
fn clone(&self) -> SessionManagedPermissions
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 SessionManagedPermissions
impl Debug for SessionManagedPermissions
Source§impl Default for SessionManagedPermissions
impl Default for SessionManagedPermissions
Source§fn default() -> SessionManagedPermissions
fn default() -> SessionManagedPermissions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SessionManagedPermissions
impl<'de> Deserialize<'de> for SessionManagedPermissions
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 SessionManagedPermissions
impl RefUnwindSafe for SessionManagedPermissions
impl Send for SessionManagedPermissions
impl Sync for SessionManagedPermissions
impl Unpin for SessionManagedPermissions
impl UnsafeUnpin for SessionManagedPermissions
impl UnwindSafe for SessionManagedPermissions
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