pub struct CommunityGiftId(/* 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 CommunityGiftId
impl CommunityGiftId
Sourcepub fn from_static(raw: &'static str) -> Self
pub fn from_static(raw: &'static str) -> Self
Constructs a newCommunityGiftIdfrom a static reference
Sourcepub fn into_boxed_ref(self) -> Box<CommunityGiftIdRef>
pub fn into_boxed_ref(self) -> Box<CommunityGiftIdRef>
Converts this CommunityGiftId
into a Box<CommunityGiftIdRef>
This will drop any excess capacity.
Methods from Deref<Target = 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 CommunityGiftId
impl AsRef<str> for CommunityGiftId
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 CommunityGiftId
impl Borrow<str> for CommunityGiftId
Source§impl Clone for CommunityGiftId
impl Clone for CommunityGiftId
Source§fn clone(&self) -> CommunityGiftId
fn clone(&self) -> CommunityGiftId
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 CommunityGiftId
impl Debug for CommunityGiftId
Source§impl Deref for CommunityGiftId
impl Deref for CommunityGiftId
Source§impl<'de> Deserialize<'de> for CommunityGiftId
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for CommunityGiftId
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 CommunityGiftId
impl Display for CommunityGiftId
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<'a> From<&'a CommunityGiftId> for Collection<'a, CommunityGiftId>
impl<'a> From<&'a CommunityGiftId> for Collection<'a, CommunityGiftId>
Source§fn from(v: &'a CommunityGiftId) -> Self
fn from(v: &'a CommunityGiftId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<&'a CommunityGiftId> for Cow<'a, CommunityGiftIdRef>
impl<'a> From<&'a CommunityGiftId> for Cow<'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 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 From<&str> for CommunityGiftId
impl From<&str> for CommunityGiftId
Source§impl From<Box<CommunityGiftIdRef>> for CommunityGiftId
impl From<Box<CommunityGiftIdRef>> for CommunityGiftId
Source§fn from(r: Box<CommunityGiftIdRef>) -> Self
fn from(r: Box<CommunityGiftIdRef>) -> Self
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<'a> From<CommunityGiftId> for Cow<'a, CommunityGiftIdRef>
impl<'a> From<CommunityGiftId> for Cow<'a, CommunityGiftIdRef>
Source§fn from(owned: CommunityGiftId) -> Self
fn from(owned: CommunityGiftId) -> Self
Converts to this type from the input type.
Source§impl From<CommunityGiftId> for String
impl From<CommunityGiftId> for String
Source§fn from(s: CommunityGiftId) -> Self
fn from(s: CommunityGiftId) -> Self
Converts to this type from the input type.
Source§impl<'a> From<Cow<'a, CommunityGiftIdRef>> for CommunityGiftId
impl<'a> From<Cow<'a, CommunityGiftIdRef>> for CommunityGiftId
Source§fn from(r: Cow<'a, CommunityGiftIdRef>) -> Self
fn from(r: Cow<'a, CommunityGiftIdRef>) -> Self
Converts to this type from the input type.
Source§impl From<String> for CommunityGiftId
impl From<String> for CommunityGiftId
Source§impl FromStr for CommunityGiftId
impl FromStr for CommunityGiftId
Source§impl Hash for CommunityGiftId
impl Hash for CommunityGiftId
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 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 CommunityGiftId
impl Ord for CommunityGiftId
Source§impl PartialEq<&CommunityGiftId> for CommunityGiftId
impl PartialEq<&CommunityGiftId> for CommunityGiftId
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 CommunityGiftId
impl PartialEq for CommunityGiftId
Source§impl PartialOrd for CommunityGiftId
impl PartialOrd for CommunityGiftId
Source§impl Serialize for CommunityGiftId
Available on crate feature serde
only.
impl Serialize for CommunityGiftId
Available on crate feature
serde
only.impl Eq for CommunityGiftId
impl StructuralPartialEq for CommunityGiftId
Auto Trait Implementations§
impl Freeze for CommunityGiftId
impl RefUnwindSafe for CommunityGiftId
impl Send for CommunityGiftId
impl Sync for CommunityGiftId
impl Unpin for CommunityGiftId
impl UnwindSafe for CommunityGiftId
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
)