pub struct ArgRedaction { /* private fields */ }Expand description
Redaction policy for command-line arguments emitted in process spawn logs.
Implementations§
Source§impl ArgRedaction
impl ArgRedaction
Sourcepub fn from_names(names: impl IntoIterator<Item = impl AsRef<str>>) -> Self
pub fn from_names(names: impl IntoIterator<Item = impl AsRef<str>>) -> Self
Replace the default secret-bearing names with the provided names.
Sourcepub fn with_names(
self,
names: impl IntoIterator<Item = impl AsRef<str>>,
) -> Self
pub fn with_names( self, names: impl IntoIterator<Item = impl AsRef<str>>, ) -> Self
Add multiple secret-bearing argument names.
Sourcepub fn is_sensitive_arg_name(&self, name: &str) -> bool
pub fn is_sensitive_arg_name(&self, name: &str) -> bool
Return true when an argument name should have its value redacted.
Trait Implementations§
Source§impl Clone for ArgRedaction
impl Clone for ArgRedaction
Source§fn clone(&self) -> ArgRedaction
fn clone(&self) -> ArgRedaction
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 ArgRedaction
impl Debug for ArgRedaction
Source§impl Default for ArgRedaction
impl Default for ArgRedaction
Source§fn default() -> ArgRedaction
fn default() -> ArgRedaction
Returns the “default value” for a type. Read more
impl Eq for ArgRedaction
Source§impl PartialEq for ArgRedaction
impl PartialEq for ArgRedaction
Source§fn eq(&self, other: &ArgRedaction) -> bool
fn eq(&self, other: &ArgRedaction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArgRedaction
Auto Trait Implementations§
impl Freeze for ArgRedaction
impl RefUnwindSafe for ArgRedaction
impl Send for ArgRedaction
impl Sync for ArgRedaction
impl Unpin for ArgRedaction
impl UnsafeUnpin for ArgRedaction
impl UnwindSafe for ArgRedaction
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