pub struct ProviderInstance {
pub id: Option<String>,
pub name: Option<String>,
pub description: Option<String>,
pub model: Option<String>,
pub api_key: Option<String>,
pub api: Option<String>,
pub base_url: Option<String>,
pub provider: Option<String>,
}Expand description
A named provider instance with overrides.
The id field uses the {{...}} reference protocol for cross-referencing.
Fields§
§id: Option<String>Instance ID using the {{...}} reference protocol.
name: Option<String>Display name (kept for backward compat; id is preferred for references).
description: Option<String>Description used for existence check queries (with % references).
model: Option<String>§api_key: Option<String>§api: Option<String>§base_url: Option<String>Base URL. Also accepted as url in config files.
provider: Option<String>Trait Implementations§
Source§impl Clone for ProviderInstance
impl Clone for ProviderInstance
Source§fn clone(&self) -> ProviderInstance
fn clone(&self) -> ProviderInstance
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderInstance
impl Debug for ProviderInstance
Source§impl Default for ProviderInstance
impl Default for ProviderInstance
Source§fn default() -> ProviderInstance
fn default() -> ProviderInstance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProviderInstancewhere
ProviderInstance: Default,
impl<'de> Deserialize<'de> for ProviderInstancewhere
ProviderInstance: 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 ProviderInstance
impl RefUnwindSafe for ProviderInstance
impl Send for ProviderInstance
impl Sync for ProviderInstance
impl Unpin for ProviderInstance
impl UnsafeUnpin for ProviderInstance
impl UnwindSafe for ProviderInstance
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