pub struct OpenRouterOAuthConfig {
pub use_oauth: bool,
pub callback_port: u16,
pub auto_refresh: bool,
}Expand description
Configuration for OpenRouter OAuth authentication.
Fields§
§use_oauth: boolWhether to use OAuth instead of API key
callback_port: u16Port for the local callback server
auto_refresh: boolWhether to automatically refresh tokens
Trait Implementations§
Source§impl Clone for OpenRouterOAuthConfig
impl Clone for OpenRouterOAuthConfig
Source§fn clone(&self) -> OpenRouterOAuthConfig
fn clone(&self) -> OpenRouterOAuthConfig
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 OpenRouterOAuthConfig
impl Debug for OpenRouterOAuthConfig
Source§impl Default for OpenRouterOAuthConfig
impl Default for OpenRouterOAuthConfig
Source§impl<'de> Deserialize<'de> for OpenRouterOAuthConfigwhere
OpenRouterOAuthConfig: Default,
impl<'de> Deserialize<'de> for OpenRouterOAuthConfigwhere
OpenRouterOAuthConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OpenRouterOAuthConfig
impl RefUnwindSafe for OpenRouterOAuthConfig
impl Send for OpenRouterOAuthConfig
impl Sync for OpenRouterOAuthConfig
impl Unpin for OpenRouterOAuthConfig
impl UnwindSafe for OpenRouterOAuthConfig
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