pub enum MetadataVersion {
None,
Number(u32),
}Expand description
Enum used for addressing versioned TUF metadata.
Variants§
None
The metadata is unversioned. This is the latest version of the metadata.
Number(u32)
The metadata is addressed by a specific version number.
Implementations§
Trait Implementations§
Source§impl Clone for MetadataVersion
impl Clone for MetadataVersion
Source§fn clone(&self) -> MetadataVersion
fn clone(&self) -> MetadataVersion
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 moreSource§impl Debug for MetadataVersion
impl Debug for MetadataVersion
Source§impl Display for MetadataVersion
impl Display for MetadataVersion
Source§impl Hash for MetadataVersion
impl Hash for MetadataVersion
Source§impl Ord for MetadataVersion
impl Ord for MetadataVersion
Source§fn cmp(&self, other: &MetadataVersion) -> Ordering
fn cmp(&self, other: &MetadataVersion) -> Ordering
1.21.0 · 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 MetadataVersion
impl PartialEq for MetadataVersion
Source§impl PartialOrd for MetadataVersion
impl PartialOrd for MetadataVersion
impl Copy for MetadataVersion
impl Eq for MetadataVersion
impl StructuralPartialEq for MetadataVersion
Auto Trait Implementations§
impl Freeze for MetadataVersion
impl RefUnwindSafe for MetadataVersion
impl Send for MetadataVersion
impl Sync for MetadataVersion
impl Unpin for MetadataVersion
impl UnsafeUnpin for MetadataVersion
impl UnwindSafe for MetadataVersion
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