pub struct SecretRecord {
pub id: String,
pub user_id: String,
pub tenant_id: TenantId,
pub factor_id: String,
pub secret_data: Vec<u8>,
pub metadata: Value,
pub created_at: SystemTime,
pub updated_at: SystemTime,
}Expand description
Represents a factor secret (TOTP key, WebAuthn credential, etc.)
Fields§
§id: String§user_id: String§tenant_id: TenantId§factor_id: String§secret_data: Vec<u8>§metadata: Value§created_at: SystemTime§updated_at: SystemTimeTrait Implementations§
Source§impl Clone for SecretRecord
impl Clone for SecretRecord
Source§fn clone(&self) -> SecretRecord
fn clone(&self) -> SecretRecord
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 SecretRecord
impl Debug for SecretRecord
Source§impl<'de> Deserialize<'de> for SecretRecord
impl<'de> Deserialize<'de> for SecretRecord
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 SecretRecord
impl RefUnwindSafe for SecretRecord
impl Send for SecretRecord
impl Sync for SecretRecord
impl Unpin for SecretRecord
impl UnsafeUnpin for SecretRecord
impl UnwindSafe for SecretRecord
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