pub struct RevisionPromotion {
pub tenant: String,
pub environment: EnvironmentTag,
pub revision_id: RevisionId,
pub previous: Option<RevisionId>,
pub author: ProvenanceAuthor,
pub promoted_at: DateTime<Utc>,
}Expand description
A revision was promoted into an environment: the journaled payload of
a crate::record::RunEventKind::RevisionPromoted event, and the
move DeploymentPointer::promoted applies. previous is recorded
because it is the rollback path’s whole story: the transition history
on the chain is what a byte-exact rollback re-derives, never a
reconstruction.
Fields§
§tenant: StringThe tenant the promotion governs.
environment: EnvironmentTagThe environment promoted into.
revision_id: RevisionIdThe revision that now serves full traffic.
previous: Option<RevisionId>The revision the promotion displaced (None when the environment
served nothing before).
Who promoted (human:{id} — a deployment act with a name on it).
promoted_at: DateTime<Utc>When the promotion journaled.
Trait Implementations§
Source§impl Clone for RevisionPromotion
impl Clone for RevisionPromotion
Source§impl Debug for RevisionPromotion
impl Debug for RevisionPromotion
Source§impl<'de> Deserialize<'de> for RevisionPromotion
impl<'de> Deserialize<'de> for RevisionPromotion
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
Source§impl PartialEq for RevisionPromotion
impl PartialEq for RevisionPromotion
Source§impl Serialize for RevisionPromotion
impl Serialize for RevisionPromotion
impl StructuralPartialEq for RevisionPromotion
Auto Trait Implementations§
impl Freeze for RevisionPromotion
impl RefUnwindSafe for RevisionPromotion
impl Send for RevisionPromotion
impl Sync for RevisionPromotion
impl Unpin for RevisionPromotion
impl UnsafeUnpin for RevisionPromotion
impl UnwindSafe for RevisionPromotion
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