pub struct ProviderStatus {Show 13 fields
pub provider: String,
pub label: String,
pub symbol: FrontendSymbol,
pub description: String,
pub model_ids_configurable: bool,
pub auth: ProviderAuthKind,
pub default_base_url: Option<String>,
pub default_api_key_env: Option<String>,
pub models: Vec<ProviderModel>,
pub web_search: Vec<FrontendSettingOption>,
pub tool_discovery: ToolDiscoveryMode,
pub custom_endpoint_tool_discovery: Option<ToolDiscoveryMode>,
pub realtime_voices: Vec<String>,
}Expand description
Credential availability exposed without returning credential material.
Fields§
§provider: String§label: String§symbol: FrontendSymbol§description: String§model_ids_configurable: bool§auth: ProviderAuthKind§default_base_url: Option<String>§default_api_key_env: Option<String>§models: Vec<ProviderModel>§web_search: Vec<FrontendSettingOption>§tool_discovery: ToolDiscoveryMode§custom_endpoint_tool_discovery: Option<ToolDiscoveryMode>§realtime_voices: Vec<String>Implementations§
Source§impl ProviderStatus
impl ProviderStatus
pub fn realtime_voices(&self, base_url: Option<&str>) -> &[String]
pub fn configurable_base_url(&self) -> bool
pub fn default_model(&self) -> Option<&ProviderModel>
Trait Implementations§
Source§impl Clone for ProviderStatus
impl Clone for ProviderStatus
Source§fn clone(&self) -> ProviderStatus
fn clone(&self) -> ProviderStatus
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 ProviderStatus
impl Debug for ProviderStatus
Source§impl<'de> Deserialize<'de> for ProviderStatus
impl<'de> Deserialize<'de> for ProviderStatus
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 Eq for ProviderStatus
Source§impl PartialEq for ProviderStatus
impl PartialEq for ProviderStatus
Source§impl Serialize for ProviderStatus
impl Serialize for ProviderStatus
impl StructuralPartialEq for ProviderStatus
Auto Trait Implementations§
impl Freeze for ProviderStatus
impl RefUnwindSafe for ProviderStatus
impl Send for ProviderStatus
impl Sync for ProviderStatus
impl Unpin for ProviderStatus
impl UnsafeUnpin for ProviderStatus
impl UnwindSafe for ProviderStatus
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.