pub struct CommandCharacteristics {
pub base_command: String,
pub indirect_execution: Option<IndirectExecution>,
pub has_dynamic_command: bool,
}Expand description
Properties of a parsed command segment relevant to security analysis.
Fields§
§base_command: StringBase command name (path stripped, env vars skipped).
indirect_execution: Option<IndirectExecution>If this is an indirect execution wrapper, what kind.
has_dynamic_command: boolWhether the command position contains a variable expansion
($cmd, ${cmd}) that cannot be statically resolved.
Trait Implementations§
Source§impl Clone for CommandCharacteristics
impl Clone for CommandCharacteristics
Source§fn clone(&self) -> CommandCharacteristics
fn clone(&self) -> CommandCharacteristics
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CommandCharacteristics
impl Debug for CommandCharacteristics
Source§impl PartialEq for CommandCharacteristics
impl PartialEq for CommandCharacteristics
Source§fn eq(&self, other: &CommandCharacteristics) -> bool
fn eq(&self, other: &CommandCharacteristics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for CommandCharacteristics
impl StructuralPartialEq for CommandCharacteristics
Auto Trait Implementations§
impl Freeze for CommandCharacteristics
impl RefUnwindSafe for CommandCharacteristics
impl Send for CommandCharacteristics
impl Sync for CommandCharacteristics
impl Unpin for CommandCharacteristics
impl UnsafeUnpin for CommandCharacteristics
impl UnwindSafe for CommandCharacteristics
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