Struct twitch_types::UserIdRef
source · [−]#[repr(transparent)]pub struct UserIdRef(_);
Expand description
A user ID.
Implementations
sourceimpl 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
sourceimpl<'de: 'a, 'a> Deserialize<'de> for &'a UserIdRef
impl<'de: 'a, 'a> Deserialize<'de> for &'a UserIdRef
sourcefn 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
sourceimpl<'de> Deserialize<'de> for Box<UserIdRef>
impl<'de> Deserialize<'de> for Box<UserIdRef>
sourcefn 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
sourceimpl PartialOrd<UserIdRef> for UserIdRef
impl PartialOrd<UserIdRef> for UserIdRef
sourcefn partial_cmp(&self, other: &UserIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &UserIdRef) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 more