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