#[non_exhaustive]pub struct ModelListResult {
pub provider_id: String,
pub profile_id: Option<String>,
pub source: ModelCatalogSource,
pub models: Vec<ModelCatalogEntry>,
}Expand description
model/list result. A snapshot at call time: v1 has no catalog
subscription. models MAY be empty — a build shipped with no bundled models
is a supported configuration.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider_id: StringThe catalog’s provider.
profile_id: Option<String>The catalog’s profile; null when none.
source: ModelCatalogSourceWhere the catalog came from — how a client tells a live provider catalog from a test fake and labels it honestly.
models: Vec<ModelCatalogEntry>Visible rows only, newest releaseDate first.
Trait Implementations§
Source§impl Clone for ModelListResult
impl Clone for ModelListResult
Source§impl Debug for ModelListResult
impl Debug for ModelListResult
Source§impl<'de> Deserialize<'de> for ModelListResult
impl<'de> Deserialize<'de> for ModelListResult
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 ModelListResult
Source§impl PartialEq for ModelListResult
impl PartialEq for ModelListResult
Source§impl Serialize for ModelListResult
impl Serialize for ModelListResult
impl StructuralPartialEq for ModelListResult
Auto Trait Implementations§
impl Forget for ModelListResult
impl Freeze for ModelListResult
impl Move for ModelListResult
impl RefUnwindSafe for ModelListResult
impl Send for ModelListResult
impl Sync for ModelListResult
impl Unpin for ModelListResult
impl UnsafeUnpin for ModelListResult
impl UnwindSafe for ModelListResult
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