pub struct AuthProfile {
pub name: String,
pub provider: String,
pub api_key: String,
pub base_url: Option<String>,
pub enabled: bool,
pub rate_limit_rpm: u32,
}Expand description
An auth profile — a named set of credentials for a provider.
Fields§
§name: StringProfile name (e.g., “primary”, “backup”, “org-key”).
provider: StringProvider this profile is for (e.g., “openai”, “anthropic”).
api_key: StringAPI key or token.
base_url: Option<String>Optional base URL override.
enabled: boolWhether this profile is enabled.
rate_limit_rpm: u32Max requests per minute (0 = unlimited).
Trait Implementations§
Source§impl Clone for AuthProfile
impl Clone for AuthProfile
Source§fn clone(&self) -> AuthProfile
fn clone(&self) -> AuthProfile
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 AuthProfile
impl Debug for AuthProfile
Source§impl<'de> Deserialize<'de> for AuthProfile
impl<'de> Deserialize<'de> for AuthProfile
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 AuthProfile
impl RefUnwindSafe for AuthProfile
impl Send for AuthProfile
impl Sync for AuthProfile
impl Unpin for AuthProfile
impl UnsafeUnpin for AuthProfile
impl UnwindSafe for AuthProfile
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