pub struct CommandDescriptor {
pub command_class: CargoCommandClass,
pub arguments_fingerprint: String,
}Expand description
Non-secret description of one managed Cargo invocation.
Fields§
§command_class: CargoCommandClassClosed command classification suitable for history and reservation policy.
arguments_fingerprint: StringDeterministic fingerprint of the complete argument vector.
Implementations§
Source§impl CommandDescriptor
impl CommandDescriptor
Sourcepub fn from_arguments(arguments: &[String], fingerprint_key: &[u8; 32]) -> Self
pub fn from_arguments(arguments: &[String], fingerprint_key: &[u8; 32]) -> Self
Classifies and fingerprints arguments without retaining their contents.
Sourcepub fn classify(arguments: &[String]) -> CargoCommandClass
pub fn classify(arguments: &[String]) -> CargoCommandClass
Returns the bounded command class without retaining or hashing argument values.
Trait Implementations§
Source§impl Clone for CommandDescriptor
impl Clone for CommandDescriptor
Source§impl Debug for CommandDescriptor
impl Debug for CommandDescriptor
Source§impl Default for CommandDescriptor
impl Default for CommandDescriptor
Source§impl<'de> Deserialize<'de> for CommandDescriptor
impl<'de> Deserialize<'de> for CommandDescriptor
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 CommandDescriptor
Source§impl PartialEq for CommandDescriptor
impl PartialEq for CommandDescriptor
Source§impl Serialize for CommandDescriptor
impl Serialize for CommandDescriptor
impl StructuralPartialEq for CommandDescriptor
Auto Trait Implementations§
impl Freeze for CommandDescriptor
impl RefUnwindSafe for CommandDescriptor
impl Send for CommandDescriptor
impl Sync for CommandDescriptor
impl Unpin for CommandDescriptor
impl UnsafeUnpin for CommandDescriptor
impl UnwindSafe for CommandDescriptor
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