pub struct ModelCatalog {
pub providers: Vec<ProviderCatalog>,
}Fields§
§providers: Vec<ProviderCatalog>Implementations§
Source§impl ModelCatalog
impl ModelCatalog
pub fn provider(&self, provider_key: &str) -> Option<&ProviderCatalog>
Sourcepub fn find_preset_by_model_id(&self, model_id: &str) -> Option<CatalogPreset>
pub fn find_preset_by_model_id(&self, model_id: &str) -> Option<CatalogPreset>
Search across all providers for a preset matching the given model_id.
pub fn preset( &self, provider_key: &str, preset_id: &str, ) -> Option<CatalogPreset>
Trait Implementations§
Source§impl Clone for ModelCatalog
impl Clone for ModelCatalog
Source§fn clone(&self) -> ModelCatalog
fn clone(&self) -> ModelCatalog
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 ModelCatalog
impl Debug for ModelCatalog
Source§impl<'de> Deserialize<'de> for ModelCatalog
impl<'de> Deserialize<'de> for ModelCatalog
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
Source§impl PartialEq for ModelCatalog
impl PartialEq for ModelCatalog
impl StructuralPartialEq for ModelCatalog
Auto Trait Implementations§
impl Freeze for ModelCatalog
impl RefUnwindSafe for ModelCatalog
impl Send for ModelCatalog
impl Sync for ModelCatalog
impl Unpin for ModelCatalog
impl UnsafeUnpin for ModelCatalog
impl UnwindSafe for ModelCatalog
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