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