pub struct ProposalDesignationId(/* private fields */);Expand description
A row in proposal_designations: a post designated a proposal, as
an attributed fact kept apart from the author’s signed post.
Implementations§
Trait Implementations§
Source§impl Clone for ProposalDesignationId
impl Clone for ProposalDesignationId
impl Copy for ProposalDesignationId
Source§impl Debug for ProposalDesignationId
impl Debug for ProposalDesignationId
Source§impl Default for ProposalDesignationId
impl Default for ProposalDesignationId
Source§impl<'de> Deserialize<'de> for ProposalDesignationId
impl<'de> Deserialize<'de> for ProposalDesignationId
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 ProposalDesignationId
impl Display for ProposalDesignationId
impl Eq for ProposalDesignationId
Source§impl From<ProposalDesignationId> for Uuid
impl From<ProposalDesignationId> for Uuid
Source§fn from(id: ProposalDesignationId) -> Self
fn from(id: ProposalDesignationId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for ProposalDesignationId
impl From<Uuid> for ProposalDesignationId
Source§impl FromStr for ProposalDesignationId
Every id round-trips through its own Display.
impl FromStr for ProposalDesignationId
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 ProposalDesignationId
impl Hash for ProposalDesignationId
Source§impl Ord for ProposalDesignationId
impl Ord for ProposalDesignationId
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 ProposalDesignationId
impl PartialEq for ProposalDesignationId
Source§impl PartialOrd for ProposalDesignationId
impl PartialOrd for ProposalDesignationId
Source§impl Serialize for ProposalDesignationId
impl Serialize for ProposalDesignationId
impl StructuralPartialEq for ProposalDesignationId
Auto Trait Implementations§
impl Freeze for ProposalDesignationId
impl RefUnwindSafe for ProposalDesignationId
impl Send for ProposalDesignationId
impl Sync for ProposalDesignationId
impl Unpin for ProposalDesignationId
impl UnsafeUnpin for ProposalDesignationId
impl UnwindSafe for ProposalDesignationId
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