pub enum PromotionDocument {
Failure(PromotionFailure),
}Expand description
The only document shape accepted by atomic publication in this source slice.
The legacy schema-1 request is deliberately incapable of producing a success variant. A future success-schema-2 type remains deferred until it can structurally require the complete route, oracle, card, clock, coordination, performance, and journal join. No partial success DTO is exposed in the meantime.
Variants§
Failure(PromotionFailure)
Explicitly nonpromotable failure evidence.
Implementations§
Source§impl PromotionDocument
impl PromotionDocument
Sourcepub const fn transaction_identity(&self) -> &PromotionTransactionIdentity
pub const fn transaction_identity(&self) -> &PromotionTransactionIdentity
Typed identity that must equal the durable state burn before rename.
Sourcepub fn canonical_bytes(&self) -> PromotionResult<Vec<u8>>
pub fn canonical_bytes(&self) -> PromotionResult<Vec<u8>>
Exact compact newline-terminated JSON bytes.
§Errors
Returns an error if serialization unexpectedly fails.
Trait Implementations§
Source§impl Clone for PromotionDocument
impl Clone for PromotionDocument
Source§fn clone(&self) -> PromotionDocument
fn clone(&self) -> PromotionDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PromotionDocument
impl RefUnwindSafe for PromotionDocument
impl Send for PromotionDocument
impl Sync for PromotionDocument
impl Unpin for PromotionDocument
impl UnsafeUnpin for PromotionDocument
impl UnwindSafe for PromotionDocument
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