pub struct ProviderConfigV2 {
pub alias: Option<String>,
pub enabled: bool,
pub auth: UpstreamAuth,
pub tags: BTreeMap<String, String>,
pub supported_models: BTreeMap<String, bool>,
pub model_mapping: BTreeMap<String, String>,
pub endpoints: BTreeMap<String, ProviderEndpointV2>,
}Fields§
§alias: Option<String>§enabled: bool§auth: UpstreamAuth§supported_models: BTreeMap<String, bool>§model_mapping: BTreeMap<String, String>§endpoints: BTreeMap<String, ProviderEndpointV2>Trait Implementations§
Source§impl Clone for ProviderConfigV2
impl Clone for ProviderConfigV2
Source§fn clone(&self) -> ProviderConfigV2
fn clone(&self) -> ProviderConfigV2
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 ProviderConfigV2
impl Debug for ProviderConfigV2
Source§impl Default for ProviderConfigV2
impl Default for ProviderConfigV2
Source§impl<'de> Deserialize<'de> for ProviderConfigV2
impl<'de> Deserialize<'de> for ProviderConfigV2
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 ProviderConfigV2
impl RefUnwindSafe for ProviderConfigV2
impl Send for ProviderConfigV2
impl Sync for ProviderConfigV2
impl Unpin for ProviderConfigV2
impl UnsafeUnpin for ProviderConfigV2
impl UnwindSafe for ProviderConfigV2
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