pub struct UserId(/* private fields */);
Expand description
A user ID.
Implementations§
Source§impl UserId
impl UserId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newUserIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<UserIdRef>
pub fn into_boxed_ref(self) -> Box<UserIdRef>
Converts this UserId
into a Box<UserIdRef>
This will drop any excess capacity.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for UserId
Available on crate feature
serde
only.Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for UserId
impl Ord for UserId
Source§impl PartialOrd for UserId
impl PartialOrd for UserId
impl Eq for UserId
impl StructuralPartialEq for UserId
Auto Trait Implementations§
impl Freeze for UserId
impl RefUnwindSafe for UserId
impl Send for UserId
impl Sync for UserId
impl Unpin for UserId
impl UnwindSafe for UserId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)