pub struct TemplateEntry {
pub version: String,
pub digest: String,
pub rootfs_path: String,
pub warm: Option<WarmArtifact>,
pub defaults: TemplateDefaultsSpec,
pub labels: HashMap<String, String>,
pub created_at: DateTime<Utc>,
pub size_bytes: u64,
}Expand description
One built template version, or the unpublished draft.
Fields§
§version: StringPublished version string; empty in the draft slot.
digest: StringContent digest pinning this entry’s artifacts (sha256:<hex>),
computed at build time over source identity + rootfs fingerprint +
warm snapshot + defaults + labels.
rootfs_path: StringGuest-absolute path of the built rootfs image in the rootfs cache.
warm: Option<WarmArtifact>Pre-warmed snapshot, when the template carries one.
defaults: TemplateDefaultsSpec§labels: HashMap<String, String>Arbitrary key-value metadata (filterable in List).
created_at: DateTime<Utc>When this entry was built (draft) or its content built (versions keep the build time, not the publish time).
size_bytes: u64On-disk footprint of the artifacts (rootfs + warm snapshot).
Trait Implementations§
Source§impl Clone for TemplateEntry
impl Clone for TemplateEntry
Source§fn clone(&self) -> TemplateEntry
fn clone(&self) -> TemplateEntry
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 TemplateEntry
impl Debug for TemplateEntry
Source§impl<'de> Deserialize<'de> for TemplateEntry
impl<'de> Deserialize<'de> for TemplateEntry
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TemplateEntry, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for TemplateEntry
impl Serialize for TemplateEntry
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for TemplateEntry
impl RefUnwindSafe for TemplateEntry
impl Send for TemplateEntry
impl Sync for TemplateEntry
impl Unpin for TemplateEntry
impl UnsafeUnpin for TemplateEntry
impl UnwindSafe for TemplateEntry
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