pub struct CmdDisplay { /* private fields */ }Expand description
Owned snapshot of a command’s program + args, formatted shell-style on
Display.
If the source Cmd was marked .secret(), the args are
replaced with <secret> in Display output but the field values are
preserved structurally — useful when you want to redact for human-readable
logs but retain raw data for structured (and themselves-redacted)
observability sinks.
Implementations§
Trait Implementations§
Source§impl Clone for CmdDisplay
impl Clone for CmdDisplay
Source§fn clone(&self) -> CmdDisplay
fn clone(&self) -> CmdDisplay
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 CmdDisplay
impl Debug for CmdDisplay
Auto Trait Implementations§
impl Freeze for CmdDisplay
impl RefUnwindSafe for CmdDisplay
impl Send for CmdDisplay
impl Sync for CmdDisplay
impl Unpin for CmdDisplay
impl UnsafeUnpin for CmdDisplay
impl UnwindSafe for CmdDisplay
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