pub struct PostEmbeddingId(/* private fields */);Expand description
Unique identifier for a post embedding.
Implementations§
Trait Implementations§
Source§impl Clone for PostEmbeddingId
impl Clone for PostEmbeddingId
Source§fn clone(&self) -> PostEmbeddingId
fn clone(&self) -> PostEmbeddingId
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 PostEmbeddingId
Source§impl Debug for PostEmbeddingId
impl Debug for PostEmbeddingId
Source§impl Default for PostEmbeddingId
impl Default for PostEmbeddingId
Source§impl<'de> Deserialize<'de> for PostEmbeddingId
impl<'de> Deserialize<'de> for PostEmbeddingId
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 PostEmbeddingId
impl Display for PostEmbeddingId
impl Eq for PostEmbeddingId
Source§impl From<PostEmbeddingId> for Uuid
impl From<PostEmbeddingId> for Uuid
Source§fn from(id: PostEmbeddingId) -> Self
fn from(id: PostEmbeddingId) -> Self
Converts to this type from the input type.
Source§impl From<Uuid> for PostEmbeddingId
impl From<Uuid> for PostEmbeddingId
Source§impl FromStr for PostEmbeddingId
Every id round-trips through its own Display.
impl FromStr for PostEmbeddingId
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 PostEmbeddingId
impl Hash for PostEmbeddingId
Source§impl Ord for PostEmbeddingId
impl Ord for PostEmbeddingId
Source§fn cmp(&self, other: &PostEmbeddingId) -> Ordering
fn cmp(&self, other: &PostEmbeddingId) -> 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 PostEmbeddingId
impl PartialEq for PostEmbeddingId
Source§impl PartialOrd for PostEmbeddingId
impl PartialOrd for PostEmbeddingId
Source§impl Serialize for PostEmbeddingId
impl Serialize for PostEmbeddingId
impl StructuralPartialEq for PostEmbeddingId
Auto Trait Implementations§
impl Freeze for PostEmbeddingId
impl RefUnwindSafe for PostEmbeddingId
impl Send for PostEmbeddingId
impl Sync for PostEmbeddingId
impl Unpin for PostEmbeddingId
impl UnsafeUnpin for PostEmbeddingId
impl UnwindSafe for PostEmbeddingId
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