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 MiniControlConfig
impl Move for MiniControlConfig
impl RefUnwindSafe for MiniControlConfig
impl Send for MiniControlConfig
impl Sync for MiniControlConfig
impl Unpin for MiniControlConfig
impl UnsafeUnpin for MiniControlConfig
impl UnwindSafe for MiniControlConfig
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