pub struct Commands {
pub allow: Vec<String>,
pub deny: Vec<String>,
}
Expand description
Allowed and denied commands inside a permission.
If two commands clash inside of allow
and deny
, it should be denied by default.
Fields§
§allow: Vec<String>
Allowed command.
deny: Vec<String>
Denied command, which takes priority.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Commands
impl<'de> Deserialize<'de> for Commands
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 Commands
impl RefUnwindSafe for Commands
impl Send for Commands
impl Sync for Commands
impl Unpin for Commands
impl UnwindSafe for Commands
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