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