pub struct ProviderConfig {
pub client_id: &'static str,
pub auth_url: &'static str,
pub token_url: &'static str,
pub default_port: u16,
pub scopes: &'static str,
pub token_exchange_json: bool,
}Expand description
OAuth configuration for a provider.
Fields§
§client_id: &'static str§auth_url: &'static str§token_url: &'static str§default_port: u16§scopes: &'static str§token_exchange_json: boolIf true, token exchange uses JSON body (Claude). Otherwise form-encoded (OpenAI).
Trait Implementations§
Source§impl Clone for ProviderConfig
impl Clone for ProviderConfig
Source§fn clone(&self) -> ProviderConfig
fn clone(&self) -> ProviderConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 ProviderConfig
impl RefUnwindSafe for ProviderConfig
impl Send for ProviderConfig
impl Sync for ProviderConfig
impl Unpin for ProviderConfig
impl UnsafeUnpin for ProviderConfig
impl UnwindSafe for ProviderConfig
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