pub struct ArcProviderConnectionApiKey {
pub name: String,
pub models: Vec<String>,
pub base_url: String,
pub api_key: String,
pub auth_type: Option<AuthType>,
}Expand description
ArcProviderConnectionApiKey : A provider connection authenticated with the provider’s own API key.
Fields§
§name: StringA display name for the provider connection. Cannot match a name reserved by a built-in provider.
models: Vec<String>The AI model identifiers this connection is allowed to use.
base_url: StringThe base URL of the provider’s API. Must be an absolute http or https URL and must not end in /v1.
api_key: StringThe provider’s secret API key.
auth_type: Option<AuthType>The authentication type for this connection. Omit for the default api-key behavior.
Implementations§
Trait Implementations§
Source§impl Clone for ArcProviderConnectionApiKey
impl Clone for ArcProviderConnectionApiKey
Source§impl Debug for ArcProviderConnectionApiKey
impl Debug for ArcProviderConnectionApiKey
Source§impl<'de> Deserialize<'de> for ArcProviderConnectionApiKey
impl<'de> Deserialize<'de> for ArcProviderConnectionApiKey
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
impl StructuralPartialEq for ArcProviderConnectionApiKey
Auto Trait Implementations§
impl Freeze for ArcProviderConnectionApiKey
impl RefUnwindSafe for ArcProviderConnectionApiKey
impl Send for ArcProviderConnectionApiKey
impl Sync for ArcProviderConnectionApiKey
impl Unpin for ArcProviderConnectionApiKey
impl UnsafeUnpin for ArcProviderConnectionApiKey
impl UnwindSafe for ArcProviderConnectionApiKey
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