pub struct DecisionId(/* private fields */);Expand description
Unique identifier for a council decision.
Implementations§
Trait Implementations§
Source§impl Clone for DecisionId
impl Clone for DecisionId
Source§fn clone(&self) -> DecisionId
fn clone(&self) -> DecisionId
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DecisionId
Source§impl Debug for DecisionId
impl Debug for DecisionId
Source§impl Default for DecisionId
impl Default for DecisionId
Source§impl<'de> Deserialize<'de> for DecisionId
impl<'de> Deserialize<'de> for DecisionId
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for DecisionId
impl Display for DecisionId
impl Eq for DecisionId
Source§impl From<DecisionId> for Uuid
impl From<DecisionId> for Uuid
Source§fn from(id: DecisionId) -> Self
fn from(id: DecisionId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for DecisionId
impl From<Uuid> for DecisionId
Source§impl FromStr for DecisionId
Every id round-trips through its own Display.
impl FromStr for DecisionId
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 DecisionId
impl Hash for DecisionId
Source§impl Ord for DecisionId
impl Ord for DecisionId
Source§fn cmp(&self, other: &DecisionId) -> Ordering
fn cmp(&self, other: &DecisionId) -> Ordering
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
Source§impl PartialEq for DecisionId
impl PartialEq for DecisionId
Source§impl PartialOrd for DecisionId
impl PartialOrd for DecisionId
Source§impl Serialize for DecisionId
impl Serialize for DecisionId
impl StructuralPartialEq for DecisionId
Auto Trait Implementations§
impl Freeze for DecisionId
impl RefUnwindSafe for DecisionId
impl Send for DecisionId
impl Sync for DecisionId
impl Unpin for DecisionId
impl UnsafeUnpin for DecisionId
impl UnwindSafe for DecisionId
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