pub struct DeviceAuthorization {
pub device_code: String,
pub user_code: String,
pub verification_uri: String,
pub interval: Duration,
pub expires_in: Duration,
}Expand description
The device and user codes GitHub issued in step 1 of the flow.
Fields§
§device_code: StringOpaque code sent back while polling; never shown to the user.
user_code: StringShort code the user types on the verification page (e.g. WDJB-MJHT).
verification_uri: StringPage where the user enters user_code.
interval: DurationMinimum wait between polls (GitHub’s interval, default 5 seconds).
expires_in: DurationHow long the codes stay valid (GitHub’s expires_in, default 15 minutes).
Trait Implementations§
Source§impl Clone for DeviceAuthorization
impl Clone for DeviceAuthorization
Source§impl Debug for DeviceAuthorization
impl Debug for DeviceAuthorization
impl Eq for DeviceAuthorization
Source§impl PartialEq for DeviceAuthorization
impl PartialEq for DeviceAuthorization
impl StructuralPartialEq for DeviceAuthorization
Auto Trait Implementations§
impl Freeze for DeviceAuthorization
impl RefUnwindSafe for DeviceAuthorization
impl Send for DeviceAuthorization
impl Sync for DeviceAuthorization
impl Unpin for DeviceAuthorization
impl UnsafeUnpin for DeviceAuthorization
impl UnwindSafe for DeviceAuthorization
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§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.