pub struct OAuthConfig {
pub client_id: String,
pub auth_url: String,
pub token_url: String,
pub redirect_uri: String,
}Expand description
Configuration for the OpenAI OAuth client
Fields§
§client_id: StringOAuth client ID (default: “app_EMoamEEZ73f0CkXaXp7hrann”)
auth_url: StringAuthorization endpoint URL
token_url: StringToken exchange endpoint URL
redirect_uri: StringRedirect URI for OAuth callback (default: “http://localhost:1455/auth/callback”)
Implementations§
Source§impl OAuthConfig
impl OAuthConfig
Sourcepub fn builder() -> OAuthConfigBuilder
pub fn builder() -> OAuthConfigBuilder
Create a new config builder
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OAuthConfig
impl Debug for OAuthConfig
Auto Trait Implementations§
impl Freeze for OAuthConfig
impl RefUnwindSafe for OAuthConfig
impl Send for OAuthConfig
impl Sync for OAuthConfig
impl Unpin for OAuthConfig
impl UnwindSafe 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