pub struct OAuthConfig {
pub auth_endpoint: String,
pub token_endpoint: String,
pub client_id: String,
pub client_secret: Option<String>,
pub redirect_uri: String,
pub scopes: Vec<String>,
pub audience: Option<String>,
pub additional_params: HashMap<String, String>,
}Expand description
OAuth2 configuration for Authorization Code Flow with PKCE
Fields§
§auth_endpoint: String§token_endpoint: String§client_id: String§client_secret: Option<String>§redirect_uri: String§scopes: Vec<String>§audience: Option<String>§additional_params: HashMap<String, String>Implementations§
Source§impl OAuthConfig
impl OAuthConfig
pub const DEFAULT_REDIRECT_URI: &str = "http://127.0.0.1:4317"
Sourcepub fn google_default(_project_number: &str) -> Result<Self>
pub fn google_default(_project_number: &str) -> Result<Self>
Create a default Google OAuth2 configuration for NotebookLM Enterprise
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 moreAuto 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