pub struct Group {
pub capabilities: Vec<String>,
pub description: Option<String>,
pub unsafe_admin: bool,
}Expand description
A named set of capability patterns.
Custom groups can opt-in to granting the universal * capability by
setting Group::unsafe_admin — intended as a safeguard against
typo-driven privilege escalation.
Fields§
§capabilities: Vec<String>Capability patterns this group confers. Each pattern is validated
by validate_capability at load time.
description: Option<String>Human-readable description surfaced in CLI and audit log views.
unsafe_admin: boolOpt-in flag: custom groups must set this to grant the universal
* capability, making the elevation deliberate and visible in
the config.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Group
impl<'de> Deserialize<'de> for Group
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 Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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