#[non_exhaustive]pub enum Version {
Nil,
Time,
Dce,
Md5,
Random,
Sha1,
Database,
UnixTime,
Vendor,
Reserved,
}
Expand description
UUID Version
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Nil
Special case for the nil UUID.
Time
Version 1, time based.
Dce
Version 2, DCE Security.
Md5
Version 3, MD5 name based.
Random
Version 4, random.
Sha1
Version 5, SHA-1 name based.
Database
Available on crate feature
experimental_uuid
only.Version 6, re-ordered version of [Version::time
] for DB locality.
UnixTime
Available on crate feature
experimental_uuid
only.Version 7, unix time based.
Vendor
Available on crate feature
experimental_uuid
only.Version 8, experimental or vendor specific format
Reserved
Reserved versions. Currently, versions 9-15 are reserved.
Trait Implementations§
source§impl Ord for Version
impl Ord for Version
source§impl PartialEq<Version> for Version
impl PartialEq<Version> for Version
source§impl PartialOrd<Version> for Version
impl PartialOrd<Version> for Version
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Version
impl Eq for Version
impl StructuralEq for Version
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnwindSafe for Version
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