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 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§impl PartialEq<RedemptionId> for &RedemptionIdRef
impl PartialEq<RedemptionId> for &RedemptionIdRef
Source§impl PartialEq<RedemptionId> for RedemptionIdRef
impl PartialEq<RedemptionId> for RedemptionIdRef
Source§impl PartialEq<RedemptionIdRef> for RedemptionId
impl PartialEq<RedemptionIdRef> for RedemptionId
Source§impl PartialEq for RedemptionIdRef
impl PartialEq for RedemptionIdRef
Source§impl PartialOrd for RedemptionIdRef
impl PartialOrd for RedemptionIdRef
Source§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
Source§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