pub enum CapabilityFile {
Capability(Capability),
List(Vec<Capability>),
NamedList {
capabilities: Vec<Capability>,
},
}
Expand description
Capability formats accepted in a capability file.
Variants§
Capability(Capability)
A single capability.
List(Vec<Capability>)
A list of capabilities.
NamedList
A list of capabilities.
Fields
§
capabilities: Vec<Capability>
The list of capabilities.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CapabilityFile
impl<'de> Deserialize<'de> for CapabilityFile
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 CapabilityFile
impl RefUnwindSafe for CapabilityFile
impl Send for CapabilityFile
impl Sync for CapabilityFile
impl Unpin for CapabilityFile
impl UnwindSafe for CapabilityFile
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