pub struct DefinitionPin { /* private fields */ }Expand description
An immutable reference to one published ceremony definition.
Name and version say which definition; the digest says which bytes. A composition that pinned only the version would follow a republish it never agreed to, so the digest is part of the reference rather than a check performed beside it.
Implementations§
Source§impl DefinitionPin
impl DefinitionPin
pub const fn new( name: CeremonyName, version: CeremonyVersion, digest: CeremonyDefinitionDigest, ) -> Self
pub const fn name(&self) -> &CeremonyName
pub const fn version(&self) -> &CeremonyVersion
pub const fn digest(&self) -> CeremonyDefinitionDigest
Trait Implementations§
Source§impl Clone for DefinitionPin
impl Clone for DefinitionPin
Source§impl Debug for DefinitionPin
impl Debug for DefinitionPin
Source§impl<'de> Deserialize<'de> for DefinitionPin
impl<'de> Deserialize<'de> for DefinitionPin
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 DefinitionPin
impl Display for DefinitionPin
impl Eq for DefinitionPin
Source§impl Hash for DefinitionPin
impl Hash for DefinitionPin
Source§impl Ord for DefinitionPin
impl Ord for DefinitionPin
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 DefinitionPin
impl PartialEq for DefinitionPin
Source§impl PartialOrd for DefinitionPin
impl PartialOrd for DefinitionPin
Source§impl Serialize for DefinitionPin
impl Serialize for DefinitionPin
impl StructuralPartialEq for DefinitionPin
Auto Trait Implementations§
impl Freeze for DefinitionPin
impl RefUnwindSafe for DefinitionPin
impl Send for DefinitionPin
impl Sync for DefinitionPin
impl Unpin for DefinitionPin
impl UnsafeUnpin for DefinitionPin
impl UnwindSafe for DefinitionPin
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