pub struct RandomId(/* private fields */);Expand description
A cryptographically random identifier, max 22 characters.
Uses base64url (22 chars for 128-bit). Serde-transparent: serializes as a plain string in JSON.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RandomId
impl<'de> Deserialize<'de> for RandomId
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
impl Eq for RandomId
impl StructuralPartialEq for RandomId
Auto Trait Implementations§
impl Freeze for RandomId
impl RefUnwindSafe for RandomId
impl Send for RandomId
impl Sync for RandomId
impl Unpin for RandomId
impl UnsafeUnpin for RandomId
impl UnwindSafe for RandomId
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