pub struct DeviceCodeRecord {
pub id: String,
pub device_code: String,
pub user_code: String,
pub user_id: Option<String>,
pub expires_at: OffsetDateTime,
pub status: DeviceAuthorizationStatus,
pub last_polled_at: Option<OffsetDateTime>,
pub polling_interval: Option<i64>,
pub client_id: Option<String>,
pub scope: Option<String>,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
}Fields§
§id: String§device_code: String§user_code: String§user_id: Option<String>§expires_at: OffsetDateTime§status: DeviceAuthorizationStatus§last_polled_at: Option<OffsetDateTime>§polling_interval: Option<i64>§client_id: Option<String>§scope: Option<String>§created_at: OffsetDateTime§updated_at: OffsetDateTimeTrait Implementations§
Source§impl Clone for DeviceCodeRecord
impl Clone for DeviceCodeRecord
Source§fn clone(&self) -> DeviceCodeRecord
fn clone(&self) -> DeviceCodeRecord
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 DeviceCodeRecord
impl Debug for DeviceCodeRecord
Source§impl<'de> Deserialize<'de> for DeviceCodeRecord
impl<'de> Deserialize<'de> for DeviceCodeRecord
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
Source§impl PartialEq for DeviceCodeRecord
impl PartialEq for DeviceCodeRecord
Source§fn eq(&self, other: &DeviceCodeRecord) -> bool
fn eq(&self, other: &DeviceCodeRecord) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for DeviceCodeRecord
impl Serialize for DeviceCodeRecord
impl Eq for DeviceCodeRecord
impl StructuralPartialEq for DeviceCodeRecord
Auto Trait Implementations§
impl Freeze for DeviceCodeRecord
impl RefUnwindSafe for DeviceCodeRecord
impl Send for DeviceCodeRecord
impl Sync for DeviceCodeRecord
impl Unpin for DeviceCodeRecord
impl UnsafeUnpin for DeviceCodeRecord
impl UnwindSafe for DeviceCodeRecord
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.