pub struct MiniControlConfig {
pub scope: ControlScopeId,
pub allowed_agents: Vec<AgentId>,
pub permissions: Vec<MiniPermission>,
pub max_operations: usize,
}Expand description
Only the owner loads this from a private configuration file. A command’s scope/Agent identities are selectors, never grants. All rights default off.
Fields§
§scope: ControlScopeId§allowed_agents: Vec<AgentId>§permissions: Vec<MiniPermission>§max_operations: usizeTrait Implementations§
Source§impl Clone for MiniControlConfig
impl Clone for MiniControlConfig
Source§impl<'de> Deserialize<'de> for MiniControlConfig
impl<'de> Deserialize<'de> for MiniControlConfig
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 Forget for MiniControlConfig
impl Freeze for MiniControlConfigwhere
*const u8 is !null: Freeze,
PhantomData<AgentId>: Freeze,
PhantomData<MiniPermission>: Freeze,
impl Move for MiniControlConfig
impl RefUnwindSafe for MiniControlConfig
impl Send for MiniControlConfigwhere
RawVecInner: Send,
impl Sync for MiniControlConfigwhere
RawVecInner: Sync,
impl Unpin for MiniControlConfig
impl UnsafeUnpin for MiniControlConfigwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<AgentId>: UnsafeUnpin,
PhantomData<MiniPermission>: UnsafeUnpin,
impl UnwindSafe for MiniControlConfigwhere
RawVecInner: UnwindSafe,
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