pub struct RewardIdRef(/* private fields */);Available on crate feature
points only.Expand description
A reward ID.
Implementations§
Source§impl RewardIdRef
impl RewardIdRef
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 RewardIdRef
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 RewardIdRef
Sourcepub fn into_owned(self: Box<RewardIdRef>) -> RewardId
pub fn into_owned(self: Box<RewardIdRef>) -> RewardId
Converts a Box<RewardIdRef> into a RewardId without copying or allocating
Source§impl RewardIdRef
impl 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 AsRef<str> for RewardIdRef
impl AsRef<str> for RewardIdRef
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 Borrow<str> for RewardIdRef
impl Borrow<str> for RewardIdRef
Source§impl Debug for RewardIdRef
impl Debug for RewardIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a RewardIdRef
Available on crate feature serde only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a RewardIdRef
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<RewardIdRef>
Available on crate feature serde only.
impl<'de> Deserialize<'de> for Box<RewardIdRef>
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 RewardIdRef
impl Display for RewardIdRef
Source§impl<'a> From<&'a &'a RewardIdRef> for Collection<'a, RewardId>
impl<'a> From<&'a &'a RewardIdRef> for Collection<'a, RewardId>
Source§fn from(v: &'a &'a RewardIdRef) -> Self
fn from(v: &'a &'a RewardIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, RewardIdRef>> for &'a RewardIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, RewardIdRef>> for &'a RewardIdRef
Source§fn from(r: &'a Cow<'b, RewardIdRef>) -> &'a RewardIdRef
fn from(r: &'a Cow<'b, RewardIdRef>) -> &'a RewardIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a RewardId> for &'a RewardIdRef
impl<'a> From<&'a RewardId> for &'a RewardIdRef
Source§impl From<&RewardIdRef> for Arc<RewardIdRef>
impl From<&RewardIdRef> for Arc<RewardIdRef>
Source§fn from(r: &RewardIdRef) -> Self
fn from(r: &RewardIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a RewardIdRef> for Cow<'a, RewardIdRef>
impl<'a> From<&'a RewardIdRef> for Cow<'a, RewardIdRef>
Source§fn from(r: &'a RewardIdRef) -> Self
fn from(r: &'a RewardIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&RewardIdRef> for Rc<RewardIdRef>
impl From<&RewardIdRef> for Rc<RewardIdRef>
Source§fn from(r: &RewardIdRef) -> Self
fn from(r: &RewardIdRef) -> Self
Converts to this type from the input type.
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<'a> From<&'a String> for &'a RewardIdRef
impl<'a> From<&'a String> for &'a RewardIdRef
Source§impl<'a> From<&'a str> for &'a RewardIdRef
impl<'a> From<&'a str> for &'a RewardIdRef
Source§fn from(s: &'a str) -> &'a RewardIdRef
fn from(s: &'a str) -> &'a RewardIdRef
Converts to this type from the input type.
Source§impl Hash for RewardIdRef
impl Hash for RewardIdRef
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 &'a RewardIdRef
impl<'a> IntoCow<'a, RewardIdRef> for &'a RewardIdRef
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 RewardIdRef
impl Ord 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
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
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq for RewardIdRef
impl PartialEq for RewardIdRef
Source§fn eq(&self, other: &RewardIdRef) -> bool
fn eq(&self, other: &RewardIdRef) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for RewardIdRef
impl PartialOrd for RewardIdRef
Source§impl Serialize for RewardIdRef
Available on crate feature serde only.
impl Serialize for RewardIdRef
Available on crate feature
serde only.