pub struct PendingOAuthDisplay {
pub server_name: String,
pub user_code: String,
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub expires_in_secs: u64,
}Expand description
The OAuth device-code flow’s ONE-TIME display push (P5-2’s
run_device_flow’s on_prompt callback) — informational only, no
reply: the device flow polls the token endpoint regardless of whether
the user has acknowledged seeing this, so there is nothing to block on.
Fields§
§server_name: StringThe server name this login is for (so a multi-server login session is unambiguous in the modal).
user_code: StringShort code the user enters at verification_uri.
verification_uri: StringThe URL the user visits.
verification_uri_complete: Option<String>A URL that already embeds user_code, if the server provided one.
expires_in_secs: u64How long (seconds) the code remains valid.
Trait Implementations§
Source§impl Clone for PendingOAuthDisplay
impl Clone for PendingOAuthDisplay
Source§fn clone(&self) -> PendingOAuthDisplay
fn clone(&self) -> PendingOAuthDisplay
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 PendingOAuthDisplay
impl Debug for PendingOAuthDisplay
impl Eq for PendingOAuthDisplay
Source§impl PartialEq for PendingOAuthDisplay
impl PartialEq for PendingOAuthDisplay
impl StructuralPartialEq for PendingOAuthDisplay
Auto Trait Implementations§
impl Freeze for PendingOAuthDisplay
impl RefUnwindSafe for PendingOAuthDisplay
impl Send for PendingOAuthDisplay
impl Sync for PendingOAuthDisplay
impl Unpin for PendingOAuthDisplay
impl UnsafeUnpin for PendingOAuthDisplay
impl UnwindSafe for PendingOAuthDisplay
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.