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<'a> Arbitrary<'a> for UserId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for UserId
Available on crate feature
arbitrary
only.Source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moreSource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moreSource§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