pub struct UUID(/* private fields */);
Expand description
A Universally Unique Identifier (UUID).
UUIDs are 128-bit (16-byte) identifiers that are designed to be unique across space and time. This implementation creates type 4 (random) UUIDs, following the UUID specification:
- Version field (bits 48-51) is set to 4, indicating a random UUID
- Variant field (bits 64-65) is set to 2, indicating RFC 4122/DCE 1.1 UUID variant
Unlike ARIDs, UUIDs:
- Are shorter (128 bits vs 256 bits)
- Contain version and variant metadata within the identifier
- Have a canonical string representation with 5 groups separated by hyphens
The canonical textual representation of a UUID takes the form:
xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
where each x
is a hexadecimal
digit.
Implementations§
Trait Implementations§
Source§impl CBORTagged for UUID
Implements CBORTagged trait to provide CBOR tag information.
impl CBORTagged for UUID
Implements CBORTagged trait to provide CBOR tag information.
Source§impl CBORTaggedDecodable for UUID
Implements CBORTaggedDecodable to provide CBOR decoding functionality.
impl CBORTaggedDecodable for UUID
Implements CBORTaggedDecodable to provide CBOR decoding functionality.
Source§fn from_untagged_cbor(cbor: CBOR) -> Result<Self>
fn from_untagged_cbor(cbor: CBOR) -> Result<Self>
Source§fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
fn from_tagged_cbor(cbor: CBOR) -> Result<Self, Error>where
Self: Sized,
Source§impl CBORTaggedEncodable for UUID
Implements CBORTaggedEncodable to provide CBOR encoding functionality.
impl CBORTaggedEncodable for UUID
Implements CBORTaggedEncodable to provide CBOR encoding functionality.
Source§fn untagged_cbor(&self) -> CBOR
fn untagged_cbor(&self) -> CBOR
Source§fn tagged_cbor(&self) -> CBOR
fn tagged_cbor(&self) -> CBOR
Source§impl Display for UUID
Implements Display for UUID to format it in the standard UUID string format.
impl Display for UUID
Implements Display for UUID to format it in the standard UUID string format.
Source§impl<'a> From<&'a UUID> for &'a [u8; 16]
Implements conversion from a UUID reference to a byte array reference.
impl<'a> From<&'a UUID> for &'a [u8; 16]
Implements conversion from a UUID reference to a byte array reference.
Source§impl From<UUID> for String
Implements conversion from UUID to String in the standard format with
dashes.
impl From<UUID> for String
Implements conversion from UUID to String in the standard format with dashes.
Source§impl TryFrom<CBOR> for UUID
Implements TryFrom<CBOR>
for UUID to support conversion from CBOR data.
impl TryFrom<CBOR> for UUID
Implements TryFrom<CBOR>
for UUID to support conversion from CBOR data.
impl Copy for UUID
impl Eq for UUID
impl StructuralPartialEq for UUID
Auto Trait Implementations§
impl Freeze for UUID
impl RefUnwindSafe for UUID
impl Send for UUID
impl Sync for UUID
impl Unpin for UUID
impl UnwindSafe for UUID
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
Source§impl<T> CBORDecodable for T
impl<T> CBORDecodable for T
Source§impl<T> CBOREncodable for T
impl<T> CBOREncodable for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToHex for T
impl<T> ToHex for T
Source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
self
into the result. Lower case
letters are used (e.g. f9b4ca
)Source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
self
into the result. Upper case
letters are used (e.g. F9B4CA
)