Struct twitch_types::stream::TagId
source · pub struct TagId(/* private fields */);
Available on crate feature
stream
only.Expand description
A tag ID
Implementations§
source§impl TagId
impl TagId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newTagIdfrom a static reference
sourcepub fn into_boxed_ref(self) -> Box<TagIdRef>
pub fn into_boxed_ref(self) -> Box<TagIdRef>
Converts this TagId
into a Box<TagIdRef>
This will drop any excess capacity.
Methods from Deref<Target = TagIdRef>§
sourcepub fn as_cow(&self) -> Cow<'_, TagIdRef>
pub fn as_cow(&self) -> Cow<'_, TagIdRef>
Get a
Cow<'_, TagIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for TagId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for TagId
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 TagId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for TagId
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 TagId
impl Ord for TagId
source§impl PartialEq<&TagId> for TagId
impl PartialEq<&TagId> for TagId
source§impl PartialEq<&TagIdRef> for TagId
impl PartialEq<&TagIdRef> for TagId
source§impl PartialEq<TagId> for &TagIdRef
impl PartialEq<TagId> for &TagIdRef
source§impl PartialEq<TagId> for TagIdRef
impl PartialEq<TagId> for TagIdRef
source§impl PartialEq<TagIdRef> for TagId
impl PartialEq<TagIdRef> for TagId
source§impl PartialEq for TagId
impl PartialEq for TagId
source§impl PartialOrd for TagId
impl PartialOrd for TagId
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 TagId
impl StructuralPartialEq for TagId
Auto Trait Implementations§
impl Freeze for TagId
impl RefUnwindSafe for TagId
impl Send for TagId
impl Sync for TagId
impl Unpin for TagId
impl UnwindSafe for TagId
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