pub enum AuthEvent {
Info {
message: String,
links: Vec<Link>,
},
AuthUrl {
url: String,
instructions: Option<String>,
},
DeviceCode {
user_code: String,
verification_uri: String,
interval_seconds: Option<f64>,
expires_in_seconds: Option<f64>,
},
Progress {
message: String,
},
}Expand description
Something a sign-in tells the user, deserialized from pi’s AuthEvent
JSON.
Variants§
Info
Information with optional links.
AuthUrl
A URL to open in the browser.
DeviceCode
A device code to enter at a verification page.
Fields
Progress
Progress text.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AuthEvent
impl<'de> Deserialize<'de> for AuthEvent
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
impl StructuralPartialEq for AuthEvent
Auto Trait Implementations§
impl Forget for AuthEvent
impl Freeze for AuthEvent
impl RefUnwindSafe for AuthEvent
impl Send for AuthEvent
impl Sync for AuthEvent
impl Unpin for AuthEvent
impl UnsafeUnpin for AuthEvent
impl UnwindSafe for AuthEvent
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