pub struct DeviceCodeConfig {
pub device_authorization_url: String,
pub token_url: String,
pub client_id: String,
pub scopes: Vec<String>,
pub label: Option<String>,
}Expand description
Configuration for a device-code (RFC 8628) flow.
Fields§
The device-authorization endpoint.
token_url: StringThe token endpoint that is polled for completion.
client_id: StringThe public OAuth client id.
scopes: Vec<String>Requested scopes.
label: Option<String>Optional human label for a picker.
Trait Implementations§
Source§impl Clone for DeviceCodeConfig
impl Clone for DeviceCodeConfig
Source§impl Debug for DeviceCodeConfig
impl Debug for DeviceCodeConfig
Source§impl<'de> Deserialize<'de> for DeviceCodeConfig
impl<'de> Deserialize<'de> for DeviceCodeConfig
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 DeviceCodeConfig
Source§impl PartialEq for DeviceCodeConfig
impl PartialEq for DeviceCodeConfig
Source§impl Serialize for DeviceCodeConfig
impl Serialize for DeviceCodeConfig
impl StructuralPartialEq for DeviceCodeConfig
Auto Trait Implementations§
impl Freeze for DeviceCodeConfig
impl RefUnwindSafe for DeviceCodeConfig
impl Send for DeviceCodeConfig
impl Sync for DeviceCodeConfig
impl Unpin for DeviceCodeConfig
impl UnsafeUnpin for DeviceCodeConfig
impl UnwindSafe for DeviceCodeConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.