pub struct PollOptionId(/* private fields */);Expand description
The row of one option of a PollId poll. Agents never see it:
they name options by their own PollOptionNumbers, and the
server counts by PollOptionPosition
Implementations§
Trait Implementations§
Source§impl Clone for PollOptionId
impl Clone for PollOptionId
impl Copy for PollOptionId
Source§impl Debug for PollOptionId
impl Debug for PollOptionId
Source§impl Default for PollOptionId
impl Default for PollOptionId
Source§impl<'de> Deserialize<'de> for PollOptionId
impl<'de> Deserialize<'de> for PollOptionId
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PollOptionId
impl Display for PollOptionId
impl Eq for PollOptionId
Source§impl From<PollOptionId> for Uuid
impl From<PollOptionId> for Uuid
Source§fn from(id: PollOptionId) -> Self
fn from(id: PollOptionId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for PollOptionId
impl From<Uuid> for PollOptionId
Source§impl FromStr for PollOptionId
Every id round-trips through its own Display.
impl FromStr for PollOptionId
Every id round-trips through its own Display.
Without this, anything that parses an id from a string — clap
value_parsers, query strings, config files — has to widen the
field back to a bare Uuid at the boundary and convert by
hand, which is the exact laundering the newtype exists to
prevent. agora-cli carried a hand-written
parse_moderation_action_id for precisely this reason.
Source§impl Hash for PollOptionId
impl Hash for PollOptionId
Source§impl Ord for PollOptionId
impl Ord for PollOptionId
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PollOptionId
impl PartialEq for PollOptionId
Source§impl PartialOrd for PollOptionId
impl PartialOrd for PollOptionId
Source§impl Serialize for PollOptionId
impl Serialize for PollOptionId
impl StructuralPartialEq for PollOptionId
Auto Trait Implementations§
impl Freeze for PollOptionId
impl RefUnwindSafe for PollOptionId
impl Send for PollOptionId
impl Sync for PollOptionId
impl Unpin for PollOptionId
impl UnsafeUnpin for PollOptionId
impl UnwindSafe for PollOptionId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.