pub struct SecuritySecretMaterial {
pub secret: Vec<u8>,
pub metadata: SecuritySecretMetadata,
}Expand description
Secret bytes paired with rotation metadata.
Fields§
§secret: Vec<u8>Secret bytes, zeroized on drop.
metadata: SecuritySecretMetadataNon-secret rotation metadata.
Implementations§
Source§impl SecuritySecretMaterial
impl SecuritySecretMaterial
Sourcepub fn is_expired(&self, now_ms: u64) -> bool
pub fn is_expired(&self, now_ms: u64) -> bool
Reports whether the configured expiry has passed.
Trait Implementations§
Source§impl Clone for SecuritySecretMaterial
impl Clone for SecuritySecretMaterial
Source§fn clone(&self) -> SecuritySecretMaterial
fn clone(&self) -> SecuritySecretMaterial
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 SecuritySecretMaterial
impl Debug for SecuritySecretMaterial
Source§impl Drop for SecuritySecretMaterial
impl Drop for SecuritySecretMaterial
impl Eq for SecuritySecretMaterial
Source§impl PartialEq for SecuritySecretMaterial
impl PartialEq for SecuritySecretMaterial
impl StructuralPartialEq for SecuritySecretMaterial
Auto Trait Implementations§
impl Freeze for SecuritySecretMaterial
impl RefUnwindSafe for SecuritySecretMaterial
impl Send for SecuritySecretMaterial
impl Sync for SecuritySecretMaterial
impl Unpin for SecuritySecretMaterial
impl UnsafeUnpin for SecuritySecretMaterial
impl UnwindSafe for SecuritySecretMaterial
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