pub struct OAuthOptions {
pub client_id: Option<String>,
pub client_secret: Option<String>,
pub client_name: String,
pub scope: Option<String>,
pub redirect_uri: Option<String>,
pub flow: OAuthFlow,
}Expand description
Resolved OAuth options after secret resolution and validation.
Fields§
§client_id: Option<String>§client_secret: Option<String>§client_name: String§scope: Option<String>§redirect_uri: Option<String>§flow: OAuthFlowImplementations§
Source§impl OAuthOptions
impl OAuthOptions
Sourcepub fn use_client_credentials(&self) -> bool
pub fn use_client_credentials(&self) -> bool
True when auto or explicit client-credentials and both credentials present.
Trait Implementations§
Source§impl Clone for OAuthOptions
impl Clone for OAuthOptions
Source§fn clone(&self) -> OAuthOptions
fn clone(&self) -> OAuthOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Freeze for OAuthOptions
impl RefUnwindSafe for OAuthOptions
impl Send for OAuthOptions
impl Sync for OAuthOptions
impl Unpin for OAuthOptions
impl UnsafeUnpin for OAuthOptions
impl UnwindSafe for OAuthOptions
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