pub struct ModelCatalogSnapshot {
pub schema_version: u32,
pub snapshot_id: String,
pub created_at: String,
pub currency: String,
pub unit: String,
pub description: Option<String>,
pub sources: Vec<ModelCatalogSource>,
pub models: Vec<ModelCatalogEntry>,
}Expand description
Fields§
§schema_version: u32Version of the snapshot schema this file conforms to.
snapshot_id: StringUnique identifier for this snapshot revision.
created_at: StringISO-8601 timestamp recording when the snapshot was generated.
currency: StringCurrency that all pricing fields are denominated in (e.g. "USD").
unit: StringThe unit prices are quoted per (e.g. "token").
description: Option<String>Optional human-readable description of the snapshot.
sources: Vec<ModelCatalogSource>Provenance entries describing where the snapshot data came from.
models: Vec<ModelCatalogEntry>The catalog entries themselves, one per model.
Trait Implementations§
Source§impl Clone for ModelCatalogSnapshot
impl Clone for ModelCatalogSnapshot
Source§fn clone(&self) -> ModelCatalogSnapshot
fn clone(&self) -> ModelCatalogSnapshot
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 ModelCatalogSnapshot
impl Debug for ModelCatalogSnapshot
Source§impl<'de> Deserialize<'de> for ModelCatalogSnapshot
impl<'de> Deserialize<'de> for ModelCatalogSnapshot
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 ModelCatalogSnapshot
impl RefUnwindSafe for ModelCatalogSnapshot
impl Send for ModelCatalogSnapshot
impl Sync for ModelCatalogSnapshot
impl Unpin for ModelCatalogSnapshot
impl UnsafeUnpin for ModelCatalogSnapshot
impl UnwindSafe for ModelCatalogSnapshot
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