pub struct PromotionReceipt {
pub candidate_id: CandidateId,
pub surface: SurfaceKey,
pub previous: Option<CandidateId>,
pub decision: PromotionDecision,
pub promoted_at: DateTime<Utc>,
}Expand description
The journaled promotion receipt — the CandidatePromoted event’s
output payload. Plays the effect receipt’s role for the learning
plane: the durable, attributable confirmation that the pointer moved.
Fields§
§candidate_id: CandidateIdThe promoted candidate.
surface: SurfaceKeyThe surface whose pointer moved.
previous: Option<CandidateId>The pointer’s full-traffic value before the move (None: the
static version served). Rollback re-points to exactly this — the
byte-exactness comes from candidates being content-addressed and
immutable, so previous is the version that served, not a
reconstruction of it.
decision: PromotionDecisionThe gate’s decision: the authority and the canary binding.
promoted_at: DateTime<Utc>When the promotion executed.
Trait Implementations§
Source§impl Clone for PromotionReceipt
impl Clone for PromotionReceipt
Source§impl Debug for PromotionReceipt
impl Debug for PromotionReceipt
Source§impl<'de> Deserialize<'de> for PromotionReceipt
impl<'de> Deserialize<'de> for PromotionReceipt
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 PromotionReceipt
impl PartialEq for PromotionReceipt
Source§impl Serialize for PromotionReceipt
impl Serialize for PromotionReceipt
impl StructuralPartialEq for PromotionReceipt
Auto Trait Implementations§
impl Freeze for PromotionReceipt
impl RefUnwindSafe for PromotionReceipt
impl Send for PromotionReceipt
impl Sync for PromotionReceipt
impl Unpin for PromotionReceipt
impl UnsafeUnpin for PromotionReceipt
impl UnwindSafe for PromotionReceipt
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