pub struct Secrets { /* private fields */ }Implementations§
Source§impl Secrets
impl Secrets
pub const fn empty() -> &'static Self
pub fn new() -> Self
Sourcepub fn field(&self, field_name: &str) -> &Self
pub fn field(&self, field_name: &str) -> &Self
Get secret information about the given field, if any.
pub fn add_field(&mut self, field_name: &str, secrets: Secrets)
pub fn add_secret_field(&mut self, field_name: &str)
pub fn from_schema(schema: &Value) -> Secrets
pub fn redacted<'a>(&'a self, value: &'a Value) -> RedactedValue<'a>
Trait Implementations§
impl StructuralPartialEq for Secrets
Auto Trait Implementations§
impl Freeze for Secrets
impl RefUnwindSafe for Secrets
impl Send for Secrets
impl Sync for Secrets
impl Unpin for Secrets
impl UnsafeUnpin for Secrets
impl UnwindSafe for Secrets
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