pub struct CommandPattern {
pub argv_prefix: Vec<String>,
}Expand description
Prefix pattern used by CommandTaxonomy allowlists.
Fields§
§argv_prefix: Vec<String>Argument prefix that must match from argv[0].
Implementations§
Source§impl CommandPattern
impl CommandPattern
Trait Implementations§
Source§impl Clone for CommandPattern
impl Clone for CommandPattern
Source§impl Debug for CommandPattern
impl Debug for CommandPattern
Source§impl<'de> Deserialize<'de> for CommandPattern
impl<'de> Deserialize<'de> for CommandPattern
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
impl Eq for CommandPattern
Source§impl PartialEq for CommandPattern
impl PartialEq for CommandPattern
Source§impl Serialize for CommandPattern
impl Serialize for CommandPattern
impl StructuralPartialEq for CommandPattern
Auto Trait Implementations§
impl Freeze for CommandPattern
impl RefUnwindSafe for CommandPattern
impl Send for CommandPattern
impl Sync for CommandPattern
impl Unpin for CommandPattern
impl UnsafeUnpin for CommandPattern
impl UnwindSafe for CommandPattern
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.