Struct twitch_types::stream::TeamIdRef
source · pub struct TeamIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A Team ID
Implementations§
source§impl TeamIdRef
impl TeamIdRef
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 TeamIdRef
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 TeamIdRef
sourcepub fn into_owned(self: Box<TeamIdRef>) -> TeamId
pub fn into_owned(self: Box<TeamIdRef>) -> TeamId
Converts a Box<TeamIdRef>
into a TeamId
without copying or allocating
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a TeamIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a TeamIdRef
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 TeamIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a TeamIdRef
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<TeamIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<TeamIdRef>
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<&TeamIdRef> for TeamId
impl PartialEq<&TeamIdRef> for TeamId
source§impl PartialEq<TeamId> for &TeamIdRef
impl PartialEq<TeamId> for &TeamIdRef
source§impl PartialEq<TeamId> for TeamIdRef
impl PartialEq<TeamId> for TeamIdRef
source§impl PartialEq<TeamIdRef> for TeamId
impl PartialEq<TeamIdRef> for TeamId
source§impl PartialEq for TeamIdRef
impl PartialEq for TeamIdRef
source§impl PartialOrd for TeamIdRef
impl PartialOrd for TeamIdRef
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 TeamIdRef
impl ToOwned for TeamIdRef
source§impl<'zf> ZeroFrom<'zf, TeamIdRef> for &'zf TeamIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, TeamIdRef> for &'zf TeamIdRef
Available on crate feature
zerofrom
only.