pub struct DeployMeta {
pub version: u32,
pub created_at: u64,
pub file_count: u64,
pub total_size: u64,
pub source: Option<String>,
pub branch: Option<String>,
pub author: Option<String>,
pub message: Option<String>,
pub tag: Option<String>,
pub tags: BTreeMap<String, String>,
}Expand description
Metadata about a deployment, captured at publish time and kept alongside the (content-addressed, immutable) manifest. It is stored separately from the manifest precisely because it is mutable provenance — putting it inside the manifest would change the content id.
Fields§
§version: u32Schema version, pinned at crate::SCHEMA_VERSION.
created_at: u64Unix timestamp (seconds) when this manifest was first stored. The GC grace window keys off this, so it is never overwritten on re-deploy.
file_count: u64Number of files in the deployment.
total_size: u64Total bytes across all files.
source: Option<String>Source revision (e.g. a git commit SHA), if the client supplied one.
branch: Option<String>Source branch, if known.
Deploy author, if known.
message: Option<String>Free-form deploy message, if any.
tag: Option<String>Release tag the deploy was cut from (e.g. git describe --tags), if
known — the human-readable “which version” a bare source SHA lacks.
Arbitrary operator-supplied key-value tags (e.g. env=prod,
ticket=ABC-123) for identifying and filtering deploys from the CLI and
console. Ordered (BTreeMap) so the serialized form is stable.
Trait Implementations§
Source§impl Clone for DeployMeta
impl Clone for DeployMeta
Source§fn clone(&self) -> DeployMeta
fn clone(&self) -> DeployMeta
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for DeployMeta
impl Debug for DeployMeta
Source§impl<'de> Deserialize<'de> for DeployMeta
impl<'de> Deserialize<'de> for DeployMeta
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeployMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DeployMeta, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for DeployMeta
Source§impl PartialEq for DeployMeta
impl PartialEq for DeployMeta
Source§impl Serialize for DeployMeta
impl Serialize for DeployMeta
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,
impl StructuralPartialEq for DeployMeta
Auto Trait Implementations§
impl Freeze for DeployMeta
impl RefUnwindSafe for DeployMeta
impl Send for DeployMeta
impl Sync for DeployMeta
impl Unpin for DeployMeta
impl UnsafeUnpin for DeployMeta
impl UnwindSafe for DeployMeta
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.