pub struct SecretRotation {
pub timestamp: DateTime<Utc>,
pub machine_id: String,
pub old_secret_hash: String,
pub new_secret_hash: String,
}Expand description
Record of a secret rotation event.
Fields§
§timestamp: DateTime<Utc>When the rotation occurred
machine_id: StringMachine ID (hex) that performed the rotation
old_secret_hash: StringSHA256 hash of old secret (for verification)
new_secret_hash: StringSHA256 hash of new secret
Trait Implementations§
Source§impl Clone for SecretRotation
impl Clone for SecretRotation
Source§fn clone(&self) -> SecretRotation
fn clone(&self) -> SecretRotation
Returns a duplicate of the value. Read more
1.0.0 · 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 SecretRotation
impl Debug for SecretRotation
Source§impl<'de> Deserialize<'de> for SecretRotation
impl<'de> Deserialize<'de> for SecretRotation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SecretRotation
impl RefUnwindSafe for SecretRotation
impl Send for SecretRotation
impl Sync for SecretRotation
impl Unpin for SecretRotation
impl UnwindSafe for SecretRotation
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