pub struct CommandConfig {
pub allow: Option<Vec<String>>,
pub mode: Option<String>,
}
Fields§
§allow: Option<Vec<String>>
Allow takes effect when Mode is ExecutionPolicyFilter and only allows the specified commands to be executed. Note that the match an exact match is performed to avoid shell injections, etc.
mode: Option<String>
Implementations§
Source§impl CommandConfig
impl CommandConfig
pub fn new() -> CommandConfig
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<'de> Deserialize<'de> for CommandConfig
impl<'de> Deserialize<'de> for CommandConfig
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
Source§impl FromStr for CommandConfig
Converts Query Parameters representation (style=form, explode=false) to a CommandConfig value
as specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde deserializer
impl FromStr for CommandConfig
Converts Query Parameters representation (style=form, explode=false) to a CommandConfig value as specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde deserializer
Source§impl PartialEq for CommandConfig
impl PartialEq for CommandConfig
Source§impl Serialize for CommandConfig
impl Serialize for CommandConfig
Source§impl ToString for CommandConfig
Converts the CommandConfig value to the Query Parameters representation (style=form, explode=false)
specified in https://swagger.io/docs/specification/serialization/
Should be implemented in a serde serializer
impl ToString for CommandConfig
Converts the CommandConfig value to the Query Parameters representation (style=form, explode=false) specified in https://swagger.io/docs/specification/serialization/ Should be implemented in a serde serializer
Source§impl Validate for CommandConfig
impl Validate for CommandConfig
Source§impl<'v_a> ValidateArgs<'v_a> for CommandConfig
impl<'v_a> ValidateArgs<'v_a> for CommandConfig
impl StructuralPartialEq for CommandConfig
Auto Trait Implementations§
impl Freeze for CommandConfig
impl RefUnwindSafe for CommandConfig
impl Send for CommandConfig
impl Sync for CommandConfig
impl Unpin 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