pub struct UuidId(/* private fields */);Implementations§
Source§impl UuidId
impl UuidId
Sourcepub fn parse(input: &str) -> Result<UuidId, UuidIdError>
pub fn parse(input: &str) -> Result<UuidId, UuidIdError>
Parses a UUID from a canonical string representation.
§Errors
Returns UuidIdError::InvalidFormat when the input is not a valid UUID string.
pub const fn from_uuid(uuid: Uuid) -> UuidId
pub const fn as_uuid(&self) -> &Uuid
pub fn to_hyphenated(&self) -> String
pub fn to_simple(&self) -> String
Trait Implementations§
impl Eq for UuidId
impl StructuralPartialEq for UuidId
Auto Trait Implementations§
impl Freeze for UuidId
impl RefUnwindSafe for UuidId
impl Send for UuidId
impl Sync for UuidId
impl Unpin for UuidId
impl UnsafeUnpin for UuidId
impl UnwindSafe for UuidId
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