Struct twitch_types::stream::CharityCampaignIdRef
source · pub struct CharityCampaignIdRef(/* private fields */);
Available on crate feature
stream
only.Expand description
A Charity Campaign ID
Implementations§
source§impl CharityCampaignIdRef
impl CharityCampaignIdRef
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 CharityCampaignIdRef
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 CharityCampaignIdRef
sourcepub fn into_owned(self: Box<CharityCampaignIdRef>) -> CharityCampaignId
pub fn into_owned(self: Box<CharityCampaignIdRef>) -> CharityCampaignId
Converts a Box<CharityCampaignIdRef>
into a CharityCampaignId
without copying or allocating
source§impl CharityCampaignIdRef
impl CharityCampaignIdRef
sourcepub fn as_cow(&self) -> Cow<'_, CharityCampaignIdRef>
pub fn as_cow(&self) -> Cow<'_, CharityCampaignIdRef>
Trait Implementations§
source§impl<'a> Arbitrary<'a> for &'a CharityCampaignIdRef
Available on crate feature arbitrary
only.
impl<'a> Arbitrary<'a> for &'a CharityCampaignIdRef
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<CharityCampaignIdRef> for CharityCampaignId
impl AsRef<CharityCampaignIdRef> for CharityCampaignId
source§fn as_ref(&self) -> &CharityCampaignIdRef
fn as_ref(&self) -> &CharityCampaignIdRef
Converts this type into a shared reference of the (usually inferred) input type.
source§impl AsRef<str> for CharityCampaignIdRef
impl AsRef<str> for CharityCampaignIdRef
source§impl Borrow<CharityCampaignIdRef> for CharityCampaignId
impl Borrow<CharityCampaignIdRef> for CharityCampaignId
source§fn borrow(&self) -> &CharityCampaignIdRef
fn borrow(&self) -> &CharityCampaignIdRef
Immutably borrows from an owned value. Read more
source§impl Borrow<str> for CharityCampaignIdRef
impl Borrow<str> for CharityCampaignIdRef
source§impl Debug for CharityCampaignIdRef
impl Debug for CharityCampaignIdRef
source§impl<'de: 'a, 'a> Deserialize<'de> for &'a CharityCampaignIdRef
Available on crate feature serde
only.
impl<'de: 'a, 'a> Deserialize<'de> for &'a CharityCampaignIdRef
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<CharityCampaignIdRef>
Available on crate feature serde
only.
impl<'de> Deserialize<'de> for Box<CharityCampaignIdRef>
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 CharityCampaignIdRef
impl Display for CharityCampaignIdRef
source§impl<'a> From<&'a &'a CharityCampaignIdRef> for Collection<'a, CharityCampaignId>
impl<'a> From<&'a &'a CharityCampaignIdRef> for Collection<'a, CharityCampaignId>
source§fn from(v: &'a &'a CharityCampaignIdRef) -> Self
fn from(v: &'a &'a CharityCampaignIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a CharityCampaignId> for &'a CharityCampaignIdRef
impl<'a> From<&'a CharityCampaignId> for &'a CharityCampaignIdRef
source§fn from(owned: &'a CharityCampaignId) -> Self
fn from(owned: &'a CharityCampaignId) -> Self
Converts to this type from the input type.
source§impl From<&CharityCampaignIdRef> for Arc<CharityCampaignIdRef>
impl From<&CharityCampaignIdRef> for Arc<CharityCampaignIdRef>
source§fn from(r: &CharityCampaignIdRef) -> Self
fn from(r: &CharityCampaignIdRef) -> Self
Converts to this type from the input type.
source§impl From<&CharityCampaignIdRef> for CharityCampaignId
impl From<&CharityCampaignIdRef> for CharityCampaignId
source§fn from(s: &CharityCampaignIdRef) -> Self
fn from(s: &CharityCampaignIdRef) -> Self
Converts to this type from the input type.
source§impl<'a> From<&'a CharityCampaignIdRef> for Cow<'a, CharityCampaignIdRef>
impl<'a> From<&'a CharityCampaignIdRef> for Cow<'a, CharityCampaignIdRef>
source§fn from(r: &'a CharityCampaignIdRef) -> Self
fn from(r: &'a CharityCampaignIdRef) -> Self
Converts to this type from the input type.
source§impl From<&CharityCampaignIdRef> for Rc<CharityCampaignIdRef>
impl From<&CharityCampaignIdRef> for Rc<CharityCampaignIdRef>
source§fn from(r: &CharityCampaignIdRef) -> Self
fn from(r: &CharityCampaignIdRef) -> Self
Converts to this type from the input type.
source§impl<'a, 'b: 'a> From<&'a Cow<'b, CharityCampaignIdRef>> for &'a CharityCampaignIdRef
impl<'a, 'b: 'a> From<&'a Cow<'b, CharityCampaignIdRef>> for &'a CharityCampaignIdRef
source§fn from(r: &'a Cow<'b, CharityCampaignIdRef>) -> &'a CharityCampaignIdRef
fn from(r: &'a Cow<'b, CharityCampaignIdRef>) -> &'a CharityCampaignIdRef
Converts to this type from the input type.
source§impl<'a> From<&'a String> for &'a CharityCampaignIdRef
impl<'a> From<&'a String> for &'a CharityCampaignIdRef
source§impl<'a> From<&'a str> for &'a CharityCampaignIdRef
impl<'a> From<&'a str> for &'a CharityCampaignIdRef
source§fn from(s: &'a str) -> &'a CharityCampaignIdRef
fn from(s: &'a str) -> &'a CharityCampaignIdRef
Converts to this type from the input type.
source§impl From<CharityCampaignId> for Box<CharityCampaignIdRef>
impl From<CharityCampaignId> for Box<CharityCampaignIdRef>
source§fn from(r: CharityCampaignId) -> Self
fn from(r: CharityCampaignId) -> Self
Converts to this type from the input type.
source§impl Hash for CharityCampaignIdRef
impl Hash for CharityCampaignIdRef
source§impl<'a> IntoCow<'a, CharityCampaignIdRef> for &'a CharityCampaignId
impl<'a> IntoCow<'a, CharityCampaignIdRef> for &'a CharityCampaignId
source§fn into_cow(self) -> Cow<'a, CharityCampaignIdRef>
fn into_cow(self) -> Cow<'a, CharityCampaignIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, CharityCampaignIdRef> for &'a CharityCampaignIdRef
impl<'a> IntoCow<'a, CharityCampaignIdRef> for &'a CharityCampaignIdRef
source§fn into_cow(self) -> Cow<'a, CharityCampaignIdRef>
fn into_cow(self) -> Cow<'a, CharityCampaignIdRef>
Make the cow with proper ownership, muu
source§impl<'a> IntoCow<'a, CharityCampaignIdRef> for CharityCampaignId
impl<'a> IntoCow<'a, CharityCampaignIdRef> for CharityCampaignId
source§fn into_cow(self) -> Cow<'a, CharityCampaignIdRef>
fn into_cow(self) -> Cow<'a, CharityCampaignIdRef>
Make the cow with proper ownership, muu
source§impl Ord for CharityCampaignIdRef
impl Ord for CharityCampaignIdRef
source§impl PartialEq<&CharityCampaignIdRef> for CharityCampaignId
impl PartialEq<&CharityCampaignIdRef> for CharityCampaignId
source§fn eq(&self, other: &&CharityCampaignIdRef) -> bool
fn eq(&self, other: &&CharityCampaignIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CharityCampaignId> for &CharityCampaignIdRef
impl PartialEq<CharityCampaignId> for &CharityCampaignIdRef
source§fn eq(&self, other: &CharityCampaignId) -> bool
fn eq(&self, other: &CharityCampaignId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CharityCampaignId> for CharityCampaignIdRef
impl PartialEq<CharityCampaignId> for CharityCampaignIdRef
source§fn eq(&self, other: &CharityCampaignId) -> bool
fn eq(&self, other: &CharityCampaignId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CharityCampaignIdRef> for CharityCampaignId
impl PartialEq<CharityCampaignIdRef> for CharityCampaignId
source§fn eq(&self, other: &CharityCampaignIdRef) -> bool
fn eq(&self, other: &CharityCampaignIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq for CharityCampaignIdRef
impl PartialEq for CharityCampaignIdRef
source§fn eq(&self, other: &CharityCampaignIdRef) -> bool
fn eq(&self, other: &CharityCampaignIdRef) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for CharityCampaignIdRef
impl PartialOrd for CharityCampaignIdRef
source§fn partial_cmp(&self, other: &CharityCampaignIdRef) -> Option<Ordering>
fn partial_cmp(&self, other: &CharityCampaignIdRef) -> 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 CharityCampaignIdRef
Available on crate feature serde
only.
impl Serialize for CharityCampaignIdRef
Available on crate feature
serde
only.source§impl ToOwned for CharityCampaignIdRef
impl ToOwned for CharityCampaignIdRef
§type Owned = CharityCampaignId
type Owned = CharityCampaignId
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, CharityCampaignId> for &'zf CharityCampaignIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, CharityCampaignId> for &'zf CharityCampaignIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf CharityCampaignId) -> Self
fn zero_from(other: &'zf CharityCampaignId) -> Self
Clone the other
C
into a struct that may retain references into C
.source§impl<'zf> ZeroFrom<'zf, CharityCampaignIdRef> for &'zf CharityCampaignIdRef
Available on crate feature zerofrom
only.
impl<'zf> ZeroFrom<'zf, CharityCampaignIdRef> for &'zf CharityCampaignIdRef
Available on crate feature
zerofrom
only.source§fn zero_from(other: &'zf CharityCampaignIdRef) -> Self
fn zero_from(other: &'zf CharityCampaignIdRef) -> Self
Clone the other
C
into a struct that may retain references into C
.