pub struct PinConfig {
pub created_at: Option<String>,
pub failed_attempts: Option<i32>,
pub pin_secret: Option<String>,
pub rotated_at: Option<String>,
}Expand description
PinConfig : PINConfig is the per-key PIN state. The pin_secret field holds the at-rest ciphertext; the plaintext exists only transiently in memory during verification and is cleared once the key locks.
Fields§
§created_at: Option<String>CreatedAt is when the pin_secret was first issued.
failed_attempts: Option<i32>FailedAttempts counts consecutive wrong-PIN attempts; the key locks when it reaches the configured maximum.
pin_secret: Option<String>PINSecret is the at-rest pin_secret ciphertext. Server-internal: never logged or transmitted. Empty once the key locks.
rotated_at: Option<String>RotatedAt is when the pin_secret was last rotated; the zero value means never rotated. omitzero (not omitempty) drops the zero timestamp from the JSON, since omitempty never treats a time.Time value as empty.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinConfig
impl<'de> Deserialize<'de> for PinConfig
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
impl StructuralPartialEq for PinConfig
Auto Trait Implementations§
impl Freeze for PinConfig
impl RefUnwindSafe for PinConfig
impl Send for PinConfig
impl Sync for PinConfig
impl Unpin for PinConfig
impl UnsafeUnpin for PinConfig
impl UnwindSafe for PinConfig
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