pub struct CommandConfig {
pub safe_flags: Option<Vec<String>>,
pub allow_all_flags: bool,
pub regex: Option<Regex>,
}Expand description
Command configuration for allowlist
Fields§
§safe_flags: Option<Vec<String>>Safe subcommands or flags for this command
allow_all_flags: boolWhen true, all flags are allowed regardless of safeFlags
regex: Option<Regex>Regex constraint on the original command
Trait Implementations§
Source§impl Clone for CommandConfig
impl Clone for CommandConfig
Source§fn clone(&self) -> CommandConfig
fn clone(&self) -> CommandConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandConfig
impl Debug for CommandConfig
Source§impl Default for CommandConfig
impl Default for CommandConfig
Source§fn default() -> CommandConfig
fn default() -> CommandConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommandConfig
impl RefUnwindSafe for CommandConfig
impl Send for CommandConfig
impl Sync for CommandConfig
impl Unpin for CommandConfig
impl UnsafeUnpin for CommandConfig
impl UnwindSafe for CommandConfig
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