Struct twitch_types::points::RedemptionIdRef
source · pub struct RedemptionIdRef(/* private fields */);
Available on crate feature
points
only.Expand description
A reward redemption ID.
Implementations§
source§impl RedemptionIdRef
impl RedemptionIdRef
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 RedemptionIdRef
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 RedemptionIdRef
sourcepub fn into_owned(self: Box<RedemptionIdRef>) -> RedemptionId
pub fn into_owned(self: Box<RedemptionIdRef>) -> RedemptionId
Converts a Box<RedemptionIdRef>
into a RedemptionId
without copying or allocating
source§impl RedemptionIdRef
impl RedemptionIdRef
sourcepub fn as_cow(&self) -> Cow<'_, RedemptionIdRef>
pub fn as_cow(&self) -> Cow<'_, RedemptionIdRef>
Get a
Cow<'_, RedemptionIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a RedemptionIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a RedemptionIdRef
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<RedemptionIdRef> for RedemptionId
impl AsRef<RedemptionIdRef> for RedemptionId
source§fn as_ref(&self) -> &RedemptionIdRef
fn as_ref(&self) -> &RedemptionIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for RedemptionIdRef
impl AsRef<str> for RedemptionIdRef
source§impl Borrow<RedemptionIdRef> for RedemptionId
impl Borrow<RedemptionIdRef> for RedemptionId
source§fn borrow(&self) -> &RedemptionIdRef
fn borrow(&self) -> &RedemptionIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for RedemptionIdRef
impl Borrow<str> for RedemptionIdRef
source§impl Debug for RedemptionIdRef
impl Debug for RedemptionIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a RedemptionIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a RedemptionIdRef
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<RedemptionIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<RedemptionIdRef>
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 Display for RedemptionIdRef
impl Display for RedemptionIdRef
source§impl<'a> From<&'a &'a RedemptionIdRef> for Collection<'a, RedemptionId>
impl<'a> From<&'a &'a RedemptionIdRef> for Collection<'a, RedemptionId>
source§fn from(v: &'a &'a RedemptionIdRef) -> Self
fn from(v: &'a &'a RedemptionIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, RedemptionIdRef>> for &'a RedemptionIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, RedemptionIdRef>> for &'a RedemptionIdRef
source§fn from(r: &'a Cow<'b, RedemptionIdRef>) -> &'a RedemptionIdRef
fn from(r: &'a Cow<'b, RedemptionIdRef>) -> &'a RedemptionIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a RedemptionId> for &'a RedemptionIdRef
impl<'a> From<&'a RedemptionId> for &'a RedemptionIdRef
source§fn from(owned: &'a RedemptionId) -> Self
fn from(owned: &'a RedemptionId) -> Self
Converts to this type from the input type.
source§impl From<&RedemptionIdRef> for Arc<RedemptionIdRef>
impl From<&RedemptionIdRef> for Arc<RedemptionIdRef>
source§fn from(r: &RedemptionIdRef) -> Self
fn from(r: &RedemptionIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a RedemptionIdRef> for Cow<'a, RedemptionIdRef>
impl<'a> From<&'a RedemptionIdRef> for Cow<'a, RedemptionIdRef>
source§fn from(r: &'a RedemptionIdRef) -> Self
fn from(r: &'a RedemptionIdRef) -> Self
Converts to this type from the input type.
source§impl From<&RedemptionIdRef> for Rc<RedemptionIdRef>
impl From<&RedemptionIdRef> for Rc<RedemptionIdRef>
source§fn from(r: &RedemptionIdRef) -> Self
fn from(r: &RedemptionIdRef) -> Self
Converts to this type from the input type.
source§impl From<&RedemptionIdRef> for RedemptionId
impl From<&RedemptionIdRef> for RedemptionId
source§fn from(s: &RedemptionIdRef) -> Self
fn from(s: &RedemptionIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a RedemptionIdRef
impl<'a> From<&'a String> for &'a RedemptionIdRef
source§impl<'a> From<&'a str> for &'a RedemptionIdRef
impl<'a> From<&'a str> for &'a RedemptionIdRef
source§fn from(s: &'a str) -> &'a RedemptionIdRef
fn from(s: &'a str) -> &'a RedemptionIdRef
Converts to this type from the input type.
source§impl From<RedemptionId> for Box<RedemptionIdRef>
impl From<RedemptionId> for Box<RedemptionIdRef>
source§fn from(r: RedemptionId) -> Self
fn from(r: RedemptionId) -> Self
Converts to this type from the input type.
source§impl Hash for RedemptionIdRef
impl Hash for RedemptionIdRef
source§impl<'a> IntoCow<'a, RedemptionIdRef> for &'a RedemptionId
impl<'a> IntoCow<'a, RedemptionIdRef> for &'a RedemptionId
source§fn into_cow(self) -> Cow<'a, RedemptionIdRef>
fn into_cow(self) -> Cow<'a, RedemptionIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, RedemptionIdRef> for &'a RedemptionIdRef
impl<'a> IntoCow<'a, RedemptionIdRef> for &'a RedemptionIdRef
source§fn into_cow(self) -> Cow<'a, RedemptionIdRef>
fn into_cow(self) -> Cow<'a, RedemptionIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, RedemptionIdRef> for RedemptionId
impl<'a> IntoCow<'a, RedemptionIdRef> for RedemptionId
source§fn into_cow(self) -> Cow<'a, RedemptionIdRef>
fn into_cow(self) -> Cow<'a, RedemptionIdRef>
Make the cow with proper ownership, muu
source§impl Ord for RedemptionIdRef
impl Ord for RedemptionIdRef
source§impl PartialEq<&RedemptionIdRef> for RedemptionId
impl PartialEq<&RedemptionIdRef> for RedemptionId
source§fn eq(&self, other: &&RedemptionIdRef) -> bool
fn eq(&self, other: &&RedemptionIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RedemptionId> for &RedemptionIdRef
impl PartialEq<RedemptionId> for &RedemptionIdRef
source§fn eq(&self, other: &RedemptionId) -> bool
fn eq(&self, other: &RedemptionId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RedemptionId> for RedemptionIdRef
impl PartialEq<RedemptionId> for RedemptionIdRef
source§fn eq(&self, other: &RedemptionId) -> bool
fn eq(&self, other: &RedemptionId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<RedemptionIdRef> for RedemptionId
impl PartialEq<RedemptionIdRef> for RedemptionId
source§fn eq(&self, other: &RedemptionIdRef) -> bool
fn eq(&self, other: &RedemptionIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for RedemptionIdRef
impl PartialEq for RedemptionIdRef
source§fn eq(&self, other: &RedemptionIdRef) -> bool
fn eq(&self, other: &RedemptionIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RedemptionIdRef
impl PartialOrd for RedemptionIdRef
source§fn partial_cmp(&self, other: &RedemptionIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &RedemptionIdRef) -> Option<Ordering>
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 Serialize for RedemptionIdRef
Available on crate feature serde
only.
impl Serialize for RedemptionIdRef
Available on crate feature
serde
only.source§impl ToOwned for RedemptionIdRef
impl ToOwned for RedemptionIdRef
§type Owned = RedemptionId
type Owned = RedemptionId
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
source§impl<'zf> ZeroFrom<'zf, RedemptionId> for &'zf RedemptionIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, RedemptionId> for &'zf RedemptionIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf RedemptionId) -> Self
fn zero_from(other: &'zf RedemptionId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, RedemptionIdRef> for &'zf RedemptionIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, RedemptionIdRef> for &'zf RedemptionIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf RedemptionIdRef) -> Self
fn zero_from(other: &'zf RedemptionIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.