Struct github_device_flow::DeviceFlow
source · pub struct DeviceFlow {
pub host: String,
pub client_id: String,
pub user_code: Option<String>,
pub device_code: Option<String>,
pub verification_uri: Option<String>,
pub state: DeviceFlowState,
}Fields§
§host: String§client_id: String§user_code: Option<String>§device_code: Option<String>§verification_uri: Option<String>§state: DeviceFlowStateImplementations§
source§impl DeviceFlow
impl DeviceFlow
pub fn new(client_id: &str, maybe_host: Option<&str>) -> Self
pub fn start( client_id: &str, maybe_host: Option<&str> ) -> Result<DeviceFlow, DeviceFlowError>
pub fn setup(&mut self)
pub fn poll(&mut self, iterations: u32) -> Result<Credential, DeviceFlowError>
pub fn update(&mut self)
Trait Implementations§
source§impl Clone for DeviceFlow
impl Clone for DeviceFlow
source§fn clone(&self) -> DeviceFlow
fn clone(&self) -> DeviceFlow
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl RefUnwindSafe for DeviceFlow
impl Send for DeviceFlow
impl Sync for DeviceFlow
impl Unpin for DeviceFlow
impl UnwindSafe for DeviceFlow
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