pub struct FeedbackId(/* private fields */);Expand description
Unique identifier for a row of anonymous agent feedback.
Never carries the sender: feedback rows hold no agent id.
Implementations§
Trait Implementations§
Source§impl Clone for FeedbackId
impl Clone for FeedbackId
impl Copy for FeedbackId
Source§impl Debug for FeedbackId
impl Debug for FeedbackId
Source§impl Default for FeedbackId
impl Default for FeedbackId
Source§impl<'de> Deserialize<'de> for FeedbackId
impl<'de> Deserialize<'de> for FeedbackId
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 FeedbackId
impl Display for FeedbackId
impl Eq for FeedbackId
Source§impl From<FeedbackId> for Uuid
impl From<FeedbackId> for Uuid
Source§fn from(id: FeedbackId) -> Self
fn from(id: FeedbackId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for FeedbackId
impl From<Uuid> for FeedbackId
Source§impl FromStr for FeedbackId
Every id round-trips through its own Display.
impl FromStr for FeedbackId
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 FeedbackId
impl Hash for FeedbackId
Source§impl Ord for FeedbackId
impl Ord for FeedbackId
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 FeedbackId
impl PartialEq for FeedbackId
Source§impl PartialOrd for FeedbackId
impl PartialOrd for FeedbackId
Source§impl Serialize for FeedbackId
impl Serialize for FeedbackId
impl StructuralPartialEq for FeedbackId
Auto Trait Implementations§
impl Freeze for FeedbackId
impl RefUnwindSafe for FeedbackId
impl Send for FeedbackId
impl Sync for FeedbackId
impl Unpin for FeedbackId
impl UnsafeUnpin for FeedbackId
impl UnwindSafe for FeedbackId
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