pub struct EmbeddingMetadata { /* private fields */ }Expand description
Metadata about an embedding write for staleness and model-version tracking.
Implementations§
Source§impl EmbeddingMetadata
impl EmbeddingMetadata
Sourcepub const MAX_MODEL_STRING_LEN: usize = 256
pub const MAX_MODEL_STRING_LEN: usize = 256
Maximum length for model identity and version strings.
Sourcepub fn new(
model_identity: impl Into<String>,
model_version: impl Into<String>,
) -> Option<Self>
pub fn new( model_identity: impl Into<String>, model_version: impl Into<String>, ) -> Option<Self>
Creates validated embedding metadata.
Sourcepub fn model_identity(&self) -> &str
pub fn model_identity(&self) -> &str
The model identity.
Sourcepub fn model_version(&self) -> &str
pub fn model_version(&self) -> &str
The model version.
Trait Implementations§
Source§impl Clone for EmbeddingMetadata
impl Clone for EmbeddingMetadata
Source§impl Debug for EmbeddingMetadata
impl Debug for EmbeddingMetadata
impl Eq for EmbeddingMetadata
Source§impl Hash for EmbeddingMetadata
impl Hash for EmbeddingMetadata
Source§impl Ord for EmbeddingMetadata
impl Ord for EmbeddingMetadata
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 EmbeddingMetadata
impl PartialEq for EmbeddingMetadata
Source§impl PartialOrd for EmbeddingMetadata
impl PartialOrd for EmbeddingMetadata
impl StructuralPartialEq for EmbeddingMetadata
Auto Trait Implementations§
impl Freeze for EmbeddingMetadata
impl RefUnwindSafe for EmbeddingMetadata
impl Send for EmbeddingMetadata
impl Sync for EmbeddingMetadata
impl Unpin for EmbeddingMetadata
impl UnsafeUnpin for EmbeddingMetadata
impl UnwindSafe for EmbeddingMetadata
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