pub struct TwoFactorSecrets {
pub shared_secret: String,
pub identity_secret: String,
pub secret_1: String,
pub revocation_code: String,
pub serial_number: u64,
pub uri: Option<String>,
pub server_time: u64,
pub account_name: Option<String>,
pub phone_number_hint: Option<String>,
pub status: i32,
}Expand description
Two-factor authentication secrets returned when enabling 2FA.
Fields§
The shared secret used to generate TOTP codes (base64 encoded).
identity_secret: StringThe identity secret used for trade confirmations (base64 encoded).
secret_1: StringSecret 1 (base64 encoded).
revocation_code: StringThe revocation code to disable 2FA.
serial_number: u64Serial number of the authenticator.
uri: Option<String>URI for adding to authenticator apps.
server_time: u64Steam server time when 2FA was enabled.
account_name: Option<String>Account name.
phone_number_hint: Option<String>Phone number hint (last digits).
status: i32Status code from Steam.
Trait Implementations§
Source§impl Clone for TwoFactorSecrets
impl Clone for TwoFactorSecrets
Source§fn clone(&self) -> TwoFactorSecrets
fn clone(&self) -> TwoFactorSecrets
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 moreAuto Trait Implementations§
impl Freeze for TwoFactorSecrets
impl RefUnwindSafe for TwoFactorSecrets
impl Send for TwoFactorSecrets
impl Sync for TwoFactorSecrets
impl Unpin for TwoFactorSecrets
impl UnsafeUnpin for TwoFactorSecrets
impl UnwindSafe for TwoFactorSecrets
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more