pub struct DeviceFlowSession {
pub provider: String,
pub verification_uri: String,
pub verification_uri_complete: Option<String>,
pub user_code: String,
pub display_uri: String,
/* private fields */
}Expand description
0.7.32 — split device flow for the TUI. start_device_flow does the
initial POST that gives the user a URL + user_code; the caller then
drives the poll one tick at a time via poll_device_flow, so it
can render progress in a modal instead of blocking the main loop.
The blocking run_device_flow is now a thin loop over these two.
Fields§
§provider: String§verification_uri: String§verification_uri_complete: Option<String>§user_code: String§display_uri: StringURI we tell the user to actually open. verification_uri_complete
when the provider supplies it (already embeds the code),
otherwise just verification_uri.
Auto Trait Implementations§
impl Freeze for DeviceFlowSession
impl RefUnwindSafe for DeviceFlowSession
impl Send for DeviceFlowSession
impl Sync for DeviceFlowSession
impl Unpin for DeviceFlowSession
impl UnsafeUnpin for DeviceFlowSession
impl UnwindSafe for DeviceFlowSession
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