pub struct RedemptionId(/* private fields */);
Available on crate feature
points
only.Expand description
A reward redemption ID.
Implementations§
Source§impl RedemptionId
impl RedemptionId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newRedemptionIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<RedemptionIdRef>
pub fn into_boxed_ref(self) -> Box<RedemptionIdRef>
Converts this RedemptionId
into a Box<RedemptionIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 RedemptionId
impl AsRef<str> for RedemptionId
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 RedemptionId
impl Borrow<str> for RedemptionId
Source§impl Clone for RedemptionId
impl Clone for RedemptionId
Source§fn clone(&self) -> RedemptionId
fn clone(&self) -> RedemptionId
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for RedemptionId
impl Debug for RedemptionId
Source§impl Deref for RedemptionId
impl Deref for RedemptionId
Source§impl<'de> Deserialize<'de> for RedemptionId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for RedemptionId
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 RedemptionId
impl Display for RedemptionId
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<'a> From<&'a RedemptionId> for Collection<'a, RedemptionId>
impl<'a> From<&'a RedemptionId> for Collection<'a, RedemptionId>
Source§fn from(v: &'a RedemptionId) -> Self
fn from(v: &'a RedemptionId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a RedemptionId> for Cow<'a, RedemptionIdRef>
impl<'a> From<&'a RedemptionId> for Cow<'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 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 From<&str> for RedemptionId
impl From<&str> for RedemptionId
Source§impl From<Box<RedemptionIdRef>> for RedemptionId
impl From<Box<RedemptionIdRef>> for RedemptionId
Source§fn from(r: Box<RedemptionIdRef>) -> Self
fn from(r: Box<RedemptionIdRef>) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, RedemptionIdRef>> for RedemptionId
impl<'a> From<Cow<'a, RedemptionIdRef>> for RedemptionId
Source§fn from(r: Cow<'a, RedemptionIdRef>) -> Self
fn from(r: Cow<'a, RedemptionIdRef>) -> Self
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<'a> From<RedemptionId> for Cow<'a, RedemptionIdRef>
impl<'a> From<RedemptionId> for Cow<'a, RedemptionIdRef>
Source§fn from(owned: RedemptionId) -> Self
fn from(owned: RedemptionId) -> Self
Converts to this type from the input type.
Source§impl From<RedemptionId> for String
impl From<RedemptionId> for String
Source§fn from(s: RedemptionId) -> Self
fn from(s: RedemptionId) -> Self
Converts to this type from the input type.
Source§impl From<String> for RedemptionId
impl From<String> for RedemptionId
Source§impl FromStr for RedemptionId
impl FromStr for RedemptionId
Source§impl Hash for RedemptionId
impl Hash for RedemptionId
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 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 RedemptionId
impl Ord for RedemptionId
Source§impl PartialEq<&RedemptionId> for RedemptionId
impl PartialEq<&RedemptionId> for RedemptionId
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 RedemptionId
impl PartialEq for RedemptionId
Source§impl PartialOrd for RedemptionId
impl PartialOrd for RedemptionId
Source§impl Serialize for RedemptionId
Available on crate feature serde
only.
impl Serialize for RedemptionId
Available on crate feature
serde
only.impl Eq for RedemptionId
impl StructuralPartialEq for RedemptionId
Auto Trait Implementations§
impl Freeze for RedemptionId
impl RefUnwindSafe for RedemptionId
impl Send for RedemptionId
impl Sync for RedemptionId
impl Unpin for RedemptionId
impl UnwindSafe for RedemptionId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)