pub struct Model {Show 20 fields
pub digest: String,
pub name: Option<String>,
pub parent_digest: Option<String>,
pub scope: String,
pub state_kind: String,
pub image_ref: String,
pub image_manifest_digest: String,
pub format: Option<String>,
pub fstype: Option<String>,
pub checkpoint_manifest_digest: Option<String>,
pub artifact_path: String,
pub size_bytes: Option<i64>,
pub locality: String,
pub storage_binding_id: Option<String>,
pub availability: String,
pub migration_state: String,
pub migration_error_code: Option<String>,
pub created_at: DateTime,
pub indexed_at: DateTime,
pub child_count: i32,
}Expand description
The snapshot-index entity model.
Fields§
§digest: StringManifest digest (sha256:hex). Canonical snapshot identity.
name: Option<String>Convenience name (unique when present). NULL for digest-only entries.
parent_digest: Option<String>Manifest digest of the parent snapshot, or NULL for a root.
scope: StringSnapshot payload scope (disk today, resumable in the future).
state_kind: StringClosed descriptor state discriminant (file or checkpoint).
image_ref: StringHuman-readable image reference.
image_manifest_digest: StringOCI manifest digest of the image.
format: Option<String>On-disk format of the upper layer (raw or qcow2).
fstype: Option<String>Filesystem type inside the upper (e.g. ext4).
checkpoint_manifest_digest: Option<String>Checkpoint-manifest digest for checkpoint state.
artifact_path: StringAbsolute path to the artifact directory on this host.
size_bytes: Option<i64>Apparent size of the upper file in bytes.
locality: StringLocality of the state closure (embedded or linked).
storage_binding_id: Option<String>Host-local storage/provider binding identifier.
availability: StringRebuildable closure availability projection.
migration_state: StringArtifact migration status projection.
migration_error_code: Option<String>Stable migration failure code when blocked.
created_at: DateTimeSnapshot creation time (from manifest).
indexed_at: DateTimeWhen this row was inserted/refreshed.
child_count: i32Number of indexed snapshots whose parent_digest == self.digest.
Trait Implementations§
Source§impl From<Model> for ActiveModel
impl From<Model> for ActiveModel
Source§impl FromQueryResult for Model
impl FromQueryResult for Model
Source§fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
fn from_query_result(row: &QueryResult, pre: &str) -> Result<Self, DbErr>
Source§fn from_query_result_optional(
res: &QueryResult,
pre: &str,
) -> Result<Option<Self>, DbErr>
fn from_query_result_optional( res: &QueryResult, pre: &str, ) -> Result<Option<Self>, DbErr>
Source§fn from_query_result_nullable(
res: &QueryResult,
pre: &str,
) -> Result<Self, TryGetError>
fn from_query_result_nullable( res: &QueryResult, pre: &str, ) -> Result<Self, TryGetError>
Source§fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
fn find_by_statement(stmt: Statement) -> SelectorRaw<SelectModel<Self>>
Source§impl IntoActiveModel<ActiveModel> for Model
impl IntoActiveModel<ActiveModel> for Model
Source§fn into_active_model(self) -> ActiveModel
fn into_active_model(self) -> ActiveModel
Source§impl ModelTrait for Model
impl ModelTrait for Model
type Entity = Entity
Source§fn get(&self, c: <Self::Entity as EntityTrait>::Column) -> Value
fn get(&self, c: <Self::Entity as EntityTrait>::Column) -> Value
Source§fn set(&mut self, c: <Self::Entity as EntityTrait>::Column, v: Value)
fn set(&mut self, c: <Self::Entity as EntityTrait>::Column, v: Value)
Source§fn delete<'a, 'async_trait, A, C>(
self,
db: &'a C,
) -> Pin<Box<dyn Future<Output = Result<DeleteResult, DbErr>> + Send + 'async_trait>>where
'a: 'async_trait,
Self: IntoActiveModel<A> + 'async_trait,
C: ConnectionTrait + 'async_trait,
A: ActiveModelTrait<Entity = Self::Entity> + ActiveModelBehavior + Send + 'a + 'async_trait,
fn delete<'a, 'async_trait, A, C>(
self,
db: &'a C,
) -> Pin<Box<dyn Future<Output = Result<DeleteResult, DbErr>> + Send + 'async_trait>>where
'a: 'async_trait,
Self: IntoActiveModel<A> + 'async_trait,
C: ConnectionTrait + 'async_trait,
A: ActiveModelTrait<Entity = Self::Entity> + ActiveModelBehavior + Send + 'a + 'async_trait,
impl StructuralPartialEq for Model
Source§impl TryFrom<ActiveModel> for Model
impl TryFrom<ActiveModel> for Model
Source§impl TryIntoModel<Model> for ActiveModel
impl TryIntoModel<Model> for ActiveModel
Auto Trait Implementations§
impl Freeze for Model
impl RefUnwindSafe for Model
impl Send for Model
impl Sync for Model
impl Unpin for Model
impl UnsafeUnpin for Model
impl UnwindSafe for Model
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more