Struct twitch_types::UserId
source · #[repr(transparent)]pub struct UserId(_);
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 new UserId from 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.
Methods from Deref<Target = UserIdRef>§
sourcepub fn as_cow<'a>(&'a self) -> Cow<'a, UserIdRef>
pub fn as_cow<'a>(&'a self) -> Cow<'a, UserIdRef>
Get a
Cow<'_, UserIdRef>
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
impl<'de> Deserialize<'de> for UserId
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<UserId> for UserId
impl PartialOrd<UserId> for UserId
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 more