pub struct OAuthConfig {
pub token_provider: Arc<OAuthTokenProvider>,
pub token_endpoint: String,
}Expand description
Configuration for OAuth token fetching.
This struct contains all the information needed to automatically fetch and refresh OAuth tokens.
Fields§
§token_provider: Arc<OAuthTokenProvider>The OAuth token provider that manages token caching and refresh
token_endpoint: StringThe token endpoint path (e.g., “/token”)
Trait Implementations§
Source§impl Clone for OAuthConfig
impl Clone for OAuthConfig
Source§fn clone(&self) -> OAuthConfig
fn clone(&self) -> OAuthConfig
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 !RefUnwindSafe for OAuthConfig
impl !UnwindSafe for OAuthConfig
impl Freeze for OAuthConfig
impl Send for OAuthConfig
impl Sync for OAuthConfig
impl Unpin for OAuthConfig
impl UnsafeUnpin for OAuthConfig
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