Struct twitch_types::stream::TeamId
source · pub struct TeamId(/* private fields */);
Available on crate feature
stream
only.Expand description
A Team ID
Implementations§
source§impl TeamId
impl TeamId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newTeamIdfrom a static reference
sourcepub fn into_boxed_ref(self) -> Box<TeamIdRef>
pub fn into_boxed_ref(self) -> Box<TeamIdRef>
Converts this TeamId
into a Box<TeamIdRef>
This will drop any excess capacity.
Methods from Deref<Target = TeamIdRef>§
sourcepub fn as_cow(&self) -> Cow<'_, TeamIdRef>
pub fn as_cow(&self) -> Cow<'_, TeamIdRef>
Get a
Cow<'_, TeamIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for TeamId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for TeamId
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 TeamId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TeamId
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 Ord for TeamId
impl Ord for TeamId
source§impl PartialEq<&TeamId> for TeamId
impl PartialEq<&TeamId> for TeamId
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 TeamId
impl PartialEq for TeamId
source§impl PartialOrd for TeamId
impl PartialOrd for TeamId
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 moreimpl Eq for TeamId
impl StructuralPartialEq for TeamId
Auto Trait Implementations§
impl Freeze for TeamId
impl RefUnwindSafe for TeamId
impl Send for TeamId
impl Sync for TeamId
impl Unpin for TeamId
impl UnwindSafe for TeamId
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more