pub struct OAuth {
pub authorize_url: Url,
pub token_url: Url,
pub client_id: String,
pub scopes: Vec<String>,
pub redirect_uri: Url,
/* private fields */
}Expand description
OAuth PKCE configuration.
Fields§
OAuth authorization endpoint.
token_url: UrlOAuth token exchange and refresh endpoint.
client_id: StringOAuth client identifier.
scopes: Vec<String>OAuth scopes to request.
redirect_uri: UrlRedirect URI for the OAuth flow.
Implementations§
Source§impl OAuth
impl OAuth
Sourcepub fn pkce_enabled(&self) -> bool
pub fn pkce_enabled(&self) -> bool
Whether PKCE is enabled, defaulting to true.
Sourcepub fn token_format(&self) -> TokenFormat
pub fn token_format(&self) -> TokenFormat
The token endpoint body format, defaulting to TokenFormat::Form.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OAuth
impl<'de> Deserialize<'de> for OAuth
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 OAuth
impl StructuralPartialEq for OAuth
Auto Trait Implementations§
impl Freeze for OAuth
impl RefUnwindSafe for OAuth
impl Send for OAuth
impl Sync for OAuth
impl Unpin for OAuth
impl UnsafeUnpin for OAuth
impl UnwindSafe for OAuth
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
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.