pub struct CeremonyVersion(/* private fields */);Expand description
The version of a working session’s definition.
This is the ceremony’s own version, not the version of the document it was written in. It was pinned to a single accepted value while there was nothing to distinguish — with publication there is: a published version is immutable, so a definition that changes needs somewhere to change to.
No ordering is imposed. The engine needs to tell two versions apart, not to decide which is newer; a scheme that ranked them would be making a release-management decision on behalf of every consumer.
Implementations§
Trait Implementations§
Source§impl Clone for CeremonyVersion
impl Clone for CeremonyVersion
Source§impl Debug for CeremonyVersion
impl Debug for CeremonyVersion
Source§impl<'de> Deserialize<'de> for CeremonyVersion
impl<'de> Deserialize<'de> for CeremonyVersion
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 CeremonyVersion
impl Display for CeremonyVersion
impl Eq for CeremonyVersion
Source§impl Hash for CeremonyVersion
impl Hash for CeremonyVersion
Source§impl Ord for CeremonyVersion
impl Ord for CeremonyVersion
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 CeremonyVersion
impl PartialEq for CeremonyVersion
Source§impl PartialOrd for CeremonyVersion
impl PartialOrd for CeremonyVersion
Source§impl Serialize for CeremonyVersion
impl Serialize for CeremonyVersion
impl StructuralPartialEq for CeremonyVersion
Auto Trait Implementations§
impl Freeze for CeremonyVersion
impl RefUnwindSafe for CeremonyVersion
impl Send for CeremonyVersion
impl Sync for CeremonyVersion
impl Unpin for CeremonyVersion
impl UnsafeUnpin for CeremonyVersion
impl UnwindSafe for CeremonyVersion
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