pub struct CatalogSnapshot { /* private fields */ }Implementations§
Source§impl CatalogSnapshot
impl CatalogSnapshot
pub fn accept( snapshot_id: impl Into<String>, provider_id: impl Into<String>, catalog_version: impl Into<String>, source: CatalogSourceKind, source_receipt: impl Into<String>, created_at_epoch_seconds: u64, models: Vec<NormalizedModelSpec>, ) -> Result<Self, CatalogError>
pub fn freshness(&self, now_epoch_seconds: u64) -> CatalogFreshness
pub fn content_sha256(&self) -> &str
pub fn catalog_version(&self) -> &str
pub fn provider_id(&self) -> &str
pub fn model(&self, provider_model_id: &str) -> Option<&NormalizedModelSpec>
pub fn models(&self) -> &[NormalizedModelSpec]
Sourcepub fn promotion_subset(
&self,
provider_model_ids: &[String],
) -> Result<Self, CatalogError>
pub fn promotion_subset( &self, provider_model_ids: &[String], ) -> Result<Self, CatalogError>
Builds a deterministic promotion artifact containing only the exact configured models that completed qualification. The observed catalog remains unchanged in the LKG; this derived snapshot is a bounded, integrity-checked authority input with the same source/version/time.
pub fn validate_integrity(&self) -> Result<(), CatalogError>
Trait Implementations§
Source§impl Clone for CatalogSnapshot
impl Clone for CatalogSnapshot
Source§impl Debug for CatalogSnapshot
impl Debug for CatalogSnapshot
Source§impl<'de> Deserialize<'de> for CatalogSnapshot
impl<'de> Deserialize<'de> for CatalogSnapshot
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 CatalogSnapshot
Source§impl PartialEq for CatalogSnapshot
impl PartialEq for CatalogSnapshot
Source§impl Serialize for CatalogSnapshot
impl Serialize for CatalogSnapshot
impl StructuralPartialEq for CatalogSnapshot
Auto Trait Implementations§
impl Freeze for CatalogSnapshot
impl RefUnwindSafe for CatalogSnapshot
impl Send for CatalogSnapshot
impl Sync for CatalogSnapshot
impl Unpin for CatalogSnapshot
impl UnsafeUnpin for CatalogSnapshot
impl UnwindSafe for CatalogSnapshot
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