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 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<&RewardIdRef> for RewardId
impl PartialEq<&RewardIdRef> for RewardId
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§impl PartialOrd for RewardId
impl PartialOrd for RewardId
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
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
)