pub struct SecretMaterial(/* private fields */);Expand description
Bounded Secret bytes protected from accidental formatting or serialization.
Access is deliberately scoped to a closure, and ordinary Serde output is not implemented:
ⓘ
let material = ahri_tre_secrets::SecretMaterial::try_from(b"secret".to_vec()).unwrap();
let _ = serde_json::to_string(&material);Implementations§
Trait Implementations§
Source§impl Debug for SecretMaterial
impl Debug for SecretMaterial
Auto Trait Implementations§
impl Freeze for SecretMaterial
impl RefUnwindSafe for SecretMaterial
impl Send for SecretMaterial
impl Sync for SecretMaterial
impl Unpin for SecretMaterial
impl UnsafeUnpin for SecretMaterial
impl UnwindSafe for SecretMaterial
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