Struct twitch_types::UserIdRef
source · #[repr(transparent)]pub struct UserIdRef(_);
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 PartialEq<&UserIdRef> for UserId
impl PartialEq<&UserIdRef> for UserId
source§impl PartialEq<UserId> for &UserIdRef
impl PartialEq<UserId> for &UserIdRef
source§impl PartialEq<UserId> for UserIdRef
impl PartialEq<UserId> for UserIdRef
source§impl PartialEq<UserIdRef> for UserId
impl PartialEq<UserIdRef> for UserId
source§impl PartialEq<UserIdRef> for UserIdRef
impl PartialEq<UserIdRef> for UserIdRef
source§impl PartialOrd<UserIdRef> for UserIdRef
impl PartialOrd<UserIdRef> for UserIdRef
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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.