pub struct ManifestId(pub u64);Expand description
Version number for a namespace manifest.
The manifest version can increase when metadata changes, even if no namespace commit is written.
Tuple Fields§
§0: u64Implementations§
Source§impl ManifestId
impl ManifestId
Sourcepub fn parse(value: u64) -> Result<Self, PublicOrdinalRangeError>
pub fn parse(value: u64) -> Result<Self, PublicOrdinalRangeError>
Validates a numeric value before using it as an ordinal.
Deserialization calls this method automatically. Code that
receives a raw integer through another interface must call it
explicitly. Direct tuple construction and From<u64> are for
values that have already been validated.
Trait Implementations§
Source§impl Clone for ManifestId
impl Clone for ManifestId
Source§fn clone(&self) -> ManifestId
fn clone(&self) -> ManifestId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ManifestId
Source§impl Debug for ManifestId
impl Debug for ManifestId
Source§impl<'de> Deserialize<'de> for ManifestId
impl<'de> Deserialize<'de> for ManifestId
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 ManifestId
impl Display for ManifestId
impl Eq for ManifestId
Source§impl From<u64> for ManifestId
impl From<u64> for ManifestId
Source§impl Hash for ManifestId
impl Hash for ManifestId
Source§impl Ord for ManifestId
impl Ord for ManifestId
Source§fn cmp(&self, other: &ManifestId) -> Ordering
fn cmp(&self, other: &ManifestId) -> Ordering
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
Source§impl PartialEq for ManifestId
impl PartialEq for ManifestId
Source§impl PartialOrd for ManifestId
impl PartialOrd for ManifestId
Source§impl Serialize for ManifestId
impl Serialize for ManifestId
impl StructuralPartialEq for ManifestId
Auto Trait Implementations§
impl Freeze for ManifestId
impl RefUnwindSafe for ManifestId
impl Send for ManifestId
impl Sync for ManifestId
impl Unpin for ManifestId
impl UnsafeUnpin for ManifestId
impl UnwindSafe for ManifestId
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