Struct twitch_types::points::RewardId
source · pub struct RewardId(/* private fields */);
Available on crate feature
points
only.Expand description
A reward ID.
Implementations§
source§impl RewardId
impl RewardId
sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newRewardIdfrom a static reference
sourcepub fn into_boxed_ref(self) -> Box<RewardIdRef>
pub fn into_boxed_ref(self) -> Box<RewardIdRef>
Converts this RewardId
into a Box<RewardIdRef>
This will drop any excess capacity.
Methods from Deref<Target = RewardIdRef>§
sourcepub fn as_cow(&self) -> Cow<'_, RewardIdRef>
pub fn as_cow(&self) -> Cow<'_, RewardIdRef>
Get a
Cow<'_, RewardIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for RewardId
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for RewardId
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 AsRef<RewardIdRef> for RewardId
impl AsRef<RewardIdRef> for RewardId
source§fn as_ref(&self) -> &RewardIdRef
fn as_ref(&self) -> &RewardIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl Borrow<RewardIdRef> for RewardId
impl Borrow<RewardIdRef> for RewardId
source§fn borrow(&self) -> &RewardIdRef
fn borrow(&self) -> &RewardIdRef
Immutably borrows from an owned value. Read more
source§impl<'de> Deserialize<'de> for RewardId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for RewardId
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<'a> From<&'a RewardId> for &'a RewardIdRef
impl<'a> From<&'a RewardId> for &'a RewardIdRef
source§impl From<&RewardIdRef> for RewardId
impl From<&RewardIdRef> for RewardId
source§fn from(s: &RewardIdRef) -> Self
fn from(s: &RewardIdRef) -> Self
Converts to this type from the input type.
source§impl From<Box<RewardIdRef>> for RewardId
impl From<Box<RewardIdRef>> for RewardId
source§fn from(r: Box<RewardIdRef>) -> Self
fn from(r: Box<RewardIdRef>) -> Self
Converts to this type from the input type.
source§impl<'a> From<Cow<'a, RewardIdRef>> for RewardId
impl<'a> From<Cow<'a, RewardIdRef>> for RewardId
source§fn from(r: Cow<'a, RewardIdRef>) -> Self
fn from(r: Cow<'a, RewardIdRef>) -> Self
Converts to this type from the input type.
source§impl<'a> IntoCow<'a, RewardIdRef> for &'a RewardId
impl<'a> IntoCow<'a, RewardIdRef> for &'a RewardId
source§fn into_cow(self) -> Cow<'a, RewardIdRef>
fn into_cow(self) -> Cow<'a, RewardIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, RewardIdRef> for RewardId
impl<'a> IntoCow<'a, RewardIdRef> for RewardId
source§fn into_cow(self) -> Cow<'a, RewardIdRef>
fn into_cow(self) -> Cow<'a, RewardIdRef>
Make the cow with proper ownership, muu
source§impl Ord for RewardId
impl Ord for RewardId
source§impl PartialEq<&RewardId> for RewardId
impl PartialEq<&RewardId> for RewardId
source§impl PartialEq<&RewardIdRef> for RewardId
impl PartialEq<&RewardIdRef> for RewardId
source§fn eq(&self, other: &&RewardIdRef) -> bool
fn eq(&self, other: &&RewardIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RewardId> for &RewardIdRef
impl PartialEq<RewardId> for &RewardIdRef
source§impl PartialEq<RewardId> for RewardIdRef
impl PartialEq<RewardId> for RewardIdRef
source§impl PartialEq<RewardIdRef> for RewardId
impl PartialEq<RewardIdRef> for RewardId
source§fn eq(&self, other: &RewardIdRef) -> bool
fn eq(&self, other: &RewardIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for RewardId
impl PartialEq for RewardId
source§impl PartialOrd for RewardId
impl PartialOrd for RewardId
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<'zf> ZeroFrom<'zf, RewardId> for &'zf RewardIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, RewardId> for &'zf RewardIdRef
Available on crate feature
zerofrom
only.impl Eq for RewardId
impl StructuralPartialEq for RewardId
Auto Trait Implementations§
impl Freeze for RewardId
impl RefUnwindSafe for RewardId
impl Send for RewardId
impl Sync for RewardId
impl Unpin for RewardId
impl UnwindSafe for RewardId
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