pub struct PollChoiceId(/* private fields */);Expand description
A poll choice ID
Implementations§
Source§impl PollChoiceId
impl PollChoiceId
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.
Sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Unwraps the underlying String value
Methods from Deref<Target = 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 duplicate 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<'a> Debug for PollChoiceId
impl<'a> Debug for PollChoiceId
Source§impl Deref for PollChoiceId
impl Deref for PollChoiceId
Source§impl<'de> Deserialize<'de> for PollChoiceId
impl<'de> Deserialize<'de> for PollChoiceId
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<'a> Display for PollChoiceId
impl<'a> Display for PollChoiceId
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<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 PartialEq<&PollChoiceIdRef> for PollChoiceId
impl PartialEq<&PollChoiceIdRef> for PollChoiceId
Source§impl PartialEq<Box<PollChoiceIdRef>> for PollChoiceId
impl PartialEq<Box<PollChoiceIdRef>> for PollChoiceId
Source§impl PartialEq<PollChoiceId> for &PollChoiceIdRef
impl PartialEq<PollChoiceId> for &PollChoiceIdRef
Source§impl PartialEq<PollChoiceId> for Box<PollChoiceIdRef>
impl PartialEq<PollChoiceId> for Box<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 Serialize for PollChoiceId
impl Serialize for PollChoiceId
impl Eq 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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.