pub struct EventSchemaVersion(/* private fields */);Expand description
Version of a ceremony event’s payload shape.
Every event type versions its payload on its own, apart from the record envelope around it: adding, renaming or reinterpreting a field is a new version with a reader for the old one, never an in-place edit. The version is sealed into the record’s digest, so a payload cannot be reread under a shape it was not written in without the chain noticing.
On the wire it is the bare number; zero is refused on the way in.
Implementations§
Trait Implementations§
Source§impl Clone for EventSchemaVersion
impl Clone for EventSchemaVersion
impl Copy for EventSchemaVersion
Source§impl Debug for EventSchemaVersion
impl Debug for EventSchemaVersion
Source§impl<'de> Deserialize<'de> for EventSchemaVersion
impl<'de> Deserialize<'de> for EventSchemaVersion
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 Display for EventSchemaVersion
impl Display for EventSchemaVersion
impl Eq for EventSchemaVersion
Source§impl From<EventSchemaVersion> for u32
impl From<EventSchemaVersion> for u32
Source§fn from(version: EventSchemaVersion) -> Self
fn from(version: EventSchemaVersion) -> Self
Converts to this type from the input type.
Source§impl Hash for EventSchemaVersion
impl Hash for EventSchemaVersion
Source§impl Ord for EventSchemaVersion
impl Ord for EventSchemaVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for EventSchemaVersion
impl PartialEq for EventSchemaVersion
Source§impl PartialOrd for EventSchemaVersion
impl PartialOrd for EventSchemaVersion
Source§impl Serialize for EventSchemaVersion
impl Serialize for EventSchemaVersion
impl StructuralPartialEq for EventSchemaVersion
Auto Trait Implementations§
impl Freeze for EventSchemaVersion
impl RefUnwindSafe for EventSchemaVersion
impl Send for EventSchemaVersion
impl Sync for EventSchemaVersion
impl Unpin for EventSchemaVersion
impl UnsafeUnpin for EventSchemaVersion
impl UnwindSafe for EventSchemaVersion
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