pub struct UserIdRef(/* private fields */);
Expand description
A user ID.
Implementations§
Source§impl UserIdRef
impl UserIdRef
Sourcepub const fn from_str(raw: &str) -> &Self
pub const fn from_str(raw: &str) -> &Self
Transparently reinterprets the string slice as a strongly-typed UserIdRef
Sourcepub const fn from_static(raw: &'static str) -> &'static Self
pub const fn from_static(raw: &'static str) -> &'static Self
Transparently reinterprets the static string slice as a strongly-typed UserIdRef
Sourcepub fn into_owned(self: Box<UserIdRef>) -> UserId
pub fn into_owned(self: Box<UserIdRef>) -> UserId
Converts a Box<UserIdRef>
into a UserId
without copying or allocating
Trait Implementations§
Source§impl<'a> Arbitrary<'a> for &'a UserIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a UserIdRef
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: 'a, 'a> Deserialize<'de> for &'a UserIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a UserIdRef
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<'de> Deserialize<'de> for Box<UserIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<UserIdRef>
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 PartialOrd for UserIdRef
impl PartialOrd for UserIdRef
Source§impl ToOwned for UserIdRef
impl ToOwned for UserIdRef
Source§impl<'zf> ZeroFrom<'zf, UserIdRef> for &'zf UserIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, UserIdRef> for &'zf UserIdRef
Available on crate feature
zerofrom
only.