Struct authy::api::user::UserStatus
source · pub struct UserStatus {
pub id: u32,
pub confirmed: bool,
pub registered: bool,
pub account_disabled: bool,
pub country_code: u16,
pub phone_number: String,
pub has_hard_token: bool,
pub devices: Vec<String>,
}
Expand description
Returned when requesting the status of an authy user.
Fields
id: u32
The authy id for the user.
confirmed: bool
true when the user has used a valid code before.
registered: bool
true when the Authy Mobile/Desktop App was registered.
account_disabled: bool
Has the account been marked for deletion
country_code: u16
The country code listed for the user.
phone_number: String
The last 4 of the phone number registered to the account.
has_hard_token: bool
(Unknown, API documentation doesn’t list)
devices: Vec<String>
List of devices, options are: android, android_tablet, ios, authy_chrome, sms.
Trait Implementations
sourceimpl Clone for UserStatus
impl Clone for UserStatus
sourcefn clone(&self) -> UserStatus
fn clone(&self) -> UserStatus
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UserStatus
impl Debug for UserStatus
sourceimpl<'de> Deserialize<'de> for UserStatus
impl<'de> Deserialize<'de> for UserStatus
sourcefn 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
sourceimpl PartialEq<UserStatus> for UserStatus
impl PartialEq<UserStatus> for UserStatus
sourcefn eq(&self, other: &UserStatus) -> bool
fn eq(&self, other: &UserStatus) -> bool
sourceimpl Serialize for UserStatus
impl Serialize for UserStatus
impl Eq for UserStatus
impl StructuralEq for UserStatus
impl StructuralPartialEq for UserStatus
Auto Trait Implementations
impl RefUnwindSafe for UserStatus
impl Send for UserStatus
impl Sync for UserStatus
impl Unpin for UserStatus
impl UnwindSafe for UserStatus
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.