Struct rusoto_credential::Secret [−][src]
pub struct Secret(_);Expand description
Newtype (pattern) to protect secret credentials stored as Strings.
Trait Implementations
Allow dereferencing Secrets as &str.
assert_eq!(Secret::from("hello".to_string()).as_ref(), "hello");Secrets must not leak, so make sure they are not printed.
assert_eq!(format!("{:?}",Secret::from("hello".to_string())), "\"*******\"");Secrets must not leak, so make sure they are not displayed.
assert_eq!(format!("{}",Secret::from("hello".to_string())), "*******");Auto Trait Implementations
impl RefUnwindSafe for Secret
impl UnwindSafe for Secret
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more