pub struct AvailableModels {
pub providers: HashMap<String, Vec<String>>,
pub total_models: usize,
pub active_providers: Vec<String>,
}Expand description
Represents the available models and providers.
Fields§
§providers: HashMap<String, Vec<String>>A map where keys are provider names and values are lists of model names.
total_models: usizeThe total number of available models across all providers.
active_providers: Vec<String>A list of provider names that are currently active and available.
Trait Implementations§
Source§impl Clone for AvailableModels
impl Clone for AvailableModels
Source§fn clone(&self) -> AvailableModels
fn clone(&self) -> AvailableModels
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 AvailableModels
impl Debug for AvailableModels
Source§impl<'de> Deserialize<'de> for AvailableModels
impl<'de> Deserialize<'de> for AvailableModels
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 AvailableModels
impl RefUnwindSafe for AvailableModels
impl Send for AvailableModels
impl Sync for AvailableModels
impl Unpin for AvailableModels
impl UnwindSafe for AvailableModels
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