pub struct CommunityGiftIdRef(/* private fields */);
Available on crate feature
sub
only.Expand description
A community gift ID
A community gift is a so called “sub bomb”, where you gift one or multiple subscription(s) to a channel at once.
Implementations§
Source§impl CommunityGiftIdRef
impl CommunityGiftIdRef
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 CommunityGiftIdRef
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 CommunityGiftIdRef
Sourcepub fn into_owned(self: Box<CommunityGiftIdRef>) -> CommunityGiftId
pub fn into_owned(self: Box<CommunityGiftIdRef>) -> CommunityGiftId
Converts a Box<CommunityGiftIdRef>
into a CommunityGiftId
without copying or allocating
Source§impl CommunityGiftIdRef
impl CommunityGiftIdRef
Sourcepub fn as_cow(&self) -> Cow<'_, CommunityGiftIdRef>
pub fn as_cow(&self) -> Cow<'_, CommunityGiftIdRef>
Trait Implementations§
Source§impl AsRef<CommunityGiftIdRef> for CommunityGiftId
impl AsRef<CommunityGiftIdRef> for CommunityGiftId
Source§fn as_ref(&self) -> &CommunityGiftIdRef
fn as_ref(&self) -> &CommunityGiftIdRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl AsRef<str> for CommunityGiftIdRef
impl AsRef<str> for CommunityGiftIdRef
Source§impl Borrow<CommunityGiftIdRef> for CommunityGiftId
impl Borrow<CommunityGiftIdRef> for CommunityGiftId
Source§fn borrow(&self) -> &CommunityGiftIdRef
fn borrow(&self) -> &CommunityGiftIdRef
Immutably borrows from an owned value. Read more
Source§impl Borrow<str> for CommunityGiftIdRef
impl Borrow<str> for CommunityGiftIdRef
Source§impl Debug for CommunityGiftIdRef
impl Debug for CommunityGiftIdRef
Source§impl<'de: 'a, 'a> Deserialize<'de> for &'a CommunityGiftIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a CommunityGiftIdRef
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<CommunityGiftIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<CommunityGiftIdRef>
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 CommunityGiftIdRef
impl Display for CommunityGiftIdRef
Source§impl<'a> From<&'a &'a CommunityGiftIdRef> for Collection<'a, CommunityGiftId>
impl<'a> From<&'a &'a CommunityGiftIdRef> for Collection<'a, CommunityGiftId>
Source§fn from(v: &'a &'a CommunityGiftIdRef) -> Self
fn from(v: &'a &'a CommunityGiftIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a CommunityGiftId> for &'a CommunityGiftIdRef
impl<'a> From<&'a CommunityGiftId> for &'a CommunityGiftIdRef
Source§fn from(owned: &'a CommunityGiftId) -> Self
fn from(owned: &'a CommunityGiftId) -> Self
Converts to this type from the input type.
Source§impl From<&CommunityGiftIdRef> for Arc<CommunityGiftIdRef>
impl From<&CommunityGiftIdRef> for Arc<CommunityGiftIdRef>
Source§fn from(r: &CommunityGiftIdRef) -> Self
fn from(r: &CommunityGiftIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&CommunityGiftIdRef> for CommunityGiftId
impl From<&CommunityGiftIdRef> for CommunityGiftId
Source§fn from(s: &CommunityGiftIdRef) -> Self
fn from(s: &CommunityGiftIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a CommunityGiftIdRef> for Cow<'a, CommunityGiftIdRef>
impl<'a> From<&'a CommunityGiftIdRef> for Cow<'a, CommunityGiftIdRef>
Source§fn from(r: &'a CommunityGiftIdRef) -> Self
fn from(r: &'a CommunityGiftIdRef) -> Self
Converts to this type from the input type.
Source§impl From<&CommunityGiftIdRef> for Rc<CommunityGiftIdRef>
impl From<&CommunityGiftIdRef> for Rc<CommunityGiftIdRef>
Source§fn from(r: &CommunityGiftIdRef) -> Self
fn from(r: &CommunityGiftIdRef) -> Self
Converts to this type from the input type.
Source§impl<'a, 'b: 'a> From<&'a Cow<'b, CommunityGiftIdRef>> for &'a CommunityGiftIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, CommunityGiftIdRef>> for &'a CommunityGiftIdRef
Source§fn from(r: &'a Cow<'b, CommunityGiftIdRef>) -> &'a CommunityGiftIdRef
fn from(r: &'a Cow<'b, CommunityGiftIdRef>) -> &'a CommunityGiftIdRef
Converts to this type from the input type.
Source§impl<'a> From<&'a String> for &'a CommunityGiftIdRef
impl<'a> From<&'a String> for &'a CommunityGiftIdRef
Source§impl<'a> From<&'a str> for &'a CommunityGiftIdRef
impl<'a> From<&'a str> for &'a CommunityGiftIdRef
Source§fn from(s: &'a str) -> &'a CommunityGiftIdRef
fn from(s: &'a str) -> &'a CommunityGiftIdRef
Converts to this type from the input type.
Source§impl From<CommunityGiftId> for Box<CommunityGiftIdRef>
impl From<CommunityGiftId> for Box<CommunityGiftIdRef>
Source§fn from(r: CommunityGiftId) -> Self
fn from(r: CommunityGiftId) -> Self
Converts to this type from the input type.
Source§impl Hash for CommunityGiftIdRef
impl Hash for CommunityGiftIdRef
Source§impl<'a> IntoCow<'a, CommunityGiftIdRef> for &'a CommunityGiftId
impl<'a> IntoCow<'a, CommunityGiftIdRef> for &'a CommunityGiftId
Source§fn into_cow(self) -> Cow<'a, CommunityGiftIdRef>
fn into_cow(self) -> Cow<'a, CommunityGiftIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, CommunityGiftIdRef> for &'a CommunityGiftIdRef
impl<'a> IntoCow<'a, CommunityGiftIdRef> for &'a CommunityGiftIdRef
Source§fn into_cow(self) -> Cow<'a, CommunityGiftIdRef>
fn into_cow(self) -> Cow<'a, CommunityGiftIdRef>
Make the cow with proper ownership, muu
Source§impl<'a> IntoCow<'a, CommunityGiftIdRef> for CommunityGiftId
impl<'a> IntoCow<'a, CommunityGiftIdRef> for CommunityGiftId
Source§fn into_cow(self) -> Cow<'a, CommunityGiftIdRef>
fn into_cow(self) -> Cow<'a, CommunityGiftIdRef>
Make the cow with proper ownership, muu
Source§impl Ord for CommunityGiftIdRef
impl Ord for CommunityGiftIdRef
Source§impl PartialEq<&CommunityGiftIdRef> for CommunityGiftId
impl PartialEq<&CommunityGiftIdRef> for CommunityGiftId
Source§impl PartialEq<CommunityGiftId> for &CommunityGiftIdRef
impl PartialEq<CommunityGiftId> for &CommunityGiftIdRef
Source§impl PartialEq for CommunityGiftIdRef
impl PartialEq for CommunityGiftIdRef
Source§impl PartialOrd for CommunityGiftIdRef
impl PartialOrd for CommunityGiftIdRef
Source§impl Serialize for CommunityGiftIdRef
Available on crate feature serde
only.
impl Serialize for CommunityGiftIdRef
Available on crate feature
serde
only.Source§impl ToOwned for CommunityGiftIdRef
impl ToOwned for CommunityGiftIdRef
Source§type Owned = CommunityGiftId
type Owned = CommunityGiftId
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