pub struct EmbeddingId(pub u64);Expand description
Identifier minted for each stored embedding (monotonic within a store).
Tuple Fields§
§0: u64Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingId
impl Clone for EmbeddingId
Source§fn clone(&self) -> EmbeddingId
fn clone(&self) -> EmbeddingId
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 moreSource§impl Debug for EmbeddingId
impl Debug for EmbeddingId
Source§impl<'de> Deserialize<'de> for EmbeddingId
impl<'de> Deserialize<'de> for EmbeddingId
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 From<u64> for EmbeddingId
impl From<u64> for EmbeddingId
Source§impl Hash for EmbeddingId
impl Hash for EmbeddingId
Source§impl Ord for EmbeddingId
impl Ord for EmbeddingId
Source§fn cmp(&self, other: &EmbeddingId) -> Ordering
fn cmp(&self, other: &EmbeddingId) -> 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 EmbeddingId
impl PartialEq for EmbeddingId
Source§fn eq(&self, other: &EmbeddingId) -> bool
fn eq(&self, other: &EmbeddingId) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for EmbeddingId
impl PartialOrd for EmbeddingId
Source§impl Serialize for EmbeddingId
impl Serialize for EmbeddingId
impl Copy for EmbeddingId
impl Eq for EmbeddingId
impl StructuralPartialEq for EmbeddingId
Auto Trait Implementations§
impl Freeze for EmbeddingId
impl RefUnwindSafe for EmbeddingId
impl Send for EmbeddingId
impl Sync for EmbeddingId
impl Unpin for EmbeddingId
impl UnsafeUnpin for EmbeddingId
impl UnwindSafe for EmbeddingId
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