Struct twitch_types::sub::CommunityGiftIdRef
source · 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<'a> Arbitrary<'a> for &'a CommunityGiftIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a CommunityGiftIdRef
Available on crate feature
arbitrary
only.source§fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
fn arbitrary(u: &mut Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
fn arbitrary_take_rest(u: Unstructured<'a>) -> Result<Self, Error>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§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§fn eq(&self, other: &&CommunityGiftIdRef) -> bool
fn eq(&self, other: &&CommunityGiftIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CommunityGiftId> for &CommunityGiftIdRef
impl PartialEq<CommunityGiftId> for &CommunityGiftIdRef
source§fn eq(&self, other: &CommunityGiftId) -> bool
fn eq(&self, other: &CommunityGiftId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CommunityGiftId> for CommunityGiftIdRef
impl PartialEq<CommunityGiftId> for CommunityGiftIdRef
source§fn eq(&self, other: &CommunityGiftId) -> bool
fn eq(&self, other: &CommunityGiftId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CommunityGiftIdRef> for CommunityGiftId
impl PartialEq<CommunityGiftIdRef> for CommunityGiftId
source§fn eq(&self, other: &CommunityGiftIdRef) -> bool
fn eq(&self, other: &CommunityGiftIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for CommunityGiftIdRef
impl PartialEq for CommunityGiftIdRef
source§fn eq(&self, other: &CommunityGiftIdRef) -> bool
fn eq(&self, other: &CommunityGiftIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CommunityGiftIdRef
impl PartialOrd for CommunityGiftIdRef
source§fn partial_cmp(&self, other: &CommunityGiftIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &CommunityGiftIdRef) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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
§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
source§impl<'zf> ZeroFrom<'zf, CommunityGiftId> for &'zf CommunityGiftIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, CommunityGiftId> for &'zf CommunityGiftIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf CommunityGiftId) -> Self
fn zero_from(other: &'zf CommunityGiftId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, CommunityGiftIdRef> for &'zf CommunityGiftIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, CommunityGiftIdRef> for &'zf CommunityGiftIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf CommunityGiftIdRef) -> Self
fn zero_from(other: &'zf CommunityGiftIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.