pub struct GeneratedOtp {
pub plaintext_token: String,
pub token_hash: Vec<u8>,
pub metadata: OtpMetadata,
}Expand description
Result of generating a new OTP.
Fields§
§plaintext_token: StringThe plaintext token value to deliver to the enrollee. This is the only time the plaintext is available; the store receives only the SHA-256 hash.
token_hash: Vec<u8>SHA-256 hash of the token for storage.
metadata: OtpMetadataMetadata for the OTP record.
Auto Trait Implementations§
impl Freeze for GeneratedOtp
impl RefUnwindSafe for GeneratedOtp
impl Send for GeneratedOtp
impl Sync for GeneratedOtp
impl Unpin for GeneratedOtp
impl UnsafeUnpin for GeneratedOtp
impl UnwindSafe for GeneratedOtp
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