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 : The pin_secret field holds only the at-rest ciphertext; the plaintext exists transiently in server memory during verification and is invalidated once the key locks.
Fields§
§created_at: Option<String>When the pin_secret was first issued.
failed_attempts: Option<i32>The number of consecutive wrong-PIN attempts so far; the key locks when it reaches the configured maximum (pin_max_attempts, default 5).
pin_secret: Option<String>The at-rest ciphertext of the pin_secret. It never leaves the server and is cleared once the key locks.
rotated_at: Option<String>When the pin_secret was last rotated. Omitted if the secret was never rotated.
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 Forget for PinConfig
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