#[non_exhaustive]pub enum LinkStep {
DeviceCode {
device_code: String,
user_code: String,
verification_uri: String,
expires_in: u64,
interval: u64,
},
Redirect {
url: String,
},
}Expand description
Where a member goes to link their account.
Debug is hand-written: device_code redeems the member’s authorisation
once they approve, so it must not reach a log.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DeviceCode
OAuth device flow: show user_code and verification_uri; the
bridge polls with device_code.
Fields
Redirect
Open this URL (authorisation-code flows).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LinkStep
impl<'de> Deserialize<'de> for LinkStep
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 Eq for LinkStep
impl StructuralPartialEq for LinkStep
Auto Trait Implementations§
impl Freeze for LinkStep
impl RefUnwindSafe for LinkStep
impl Send for LinkStep
impl Sync for LinkStep
impl Unpin for LinkStep
impl UnsafeUnpin for LinkStep
impl UnwindSafe for LinkStep
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