pub struct EmbeddingGenerationManifest { /* private fields */ }Expand description
Durable metadata for one validated, complete embedding generation.
Implementations§
Source§impl EmbeddingGenerationManifest
impl EmbeddingGenerationManifest
Sourcepub fn new(
input: EmbeddingGenerationManifestInput,
) -> Result<Self, SearchArtifactError>
pub fn new( input: EmbeddingGenerationManifestInput, ) -> Result<Self, SearchArtifactError>
Validate a complete generation and derive its content-idempotent ID.
§Errors
Rejects incomplete coverage, zero dimensions, and invalid timestamps.
Sourcepub fn to_canonical_json(&self) -> Result<Vec<u8>, SearchArtifactError>
pub fn to_canonical_json(&self) -> Result<Vec<u8>, SearchArtifactError>
Serialize exact compact deterministic JSON.
§Errors
Returns a structured corruption error only for unexpected serialization failure.
Sourcepub fn from_json(path: &Path, bytes: &[u8]) -> Result<Self, SearchArtifactError>
pub fn from_json(path: &Path, bytes: &[u8]) -> Result<Self, SearchArtifactError>
Parse exact canonical manifest bytes and re-run every invariant.
§Errors
Distinguishes oversized, corrupt, and incompatible persisted metadata.
Sourcepub const fn generation_id(&self) -> EmbeddingGenerationId
pub const fn generation_id(&self) -> EmbeddingGenerationId
Content-idempotent generation identity.
Sourcepub const fn compatibility_id(&self) -> EmbeddingCompatibilityId
pub const fn compatibility_id(&self) -> EmbeddingCompatibilityId
Compatibility lineage identity.
Sourcepub const fn source(&self) -> EmbeddingSourceState
pub const fn source(&self) -> EmbeddingSourceState
Exact source state.
Sourcepub const fn content_digest(&self) -> EmbeddingContentDigest
pub const fn content_digest(&self) -> EmbeddingContentDigest
Canonical content digest.
Sourcepub const fn vector_count(&self) -> u64
pub const fn vector_count(&self) -> u64
Complete vector row count.
Sourcepub const fn generated_at_micros(&self) -> i64
pub const fn generated_at_micros(&self) -> i64
Producer completion time in UTC microseconds since Unix epoch.
Sourcepub const fn committed_at_micros(&self) -> i64
pub const fn committed_at_micros(&self) -> i64
Durable publication time in UTC microseconds since Unix epoch.
Sourcepub const fn publication_fingerprint(&self) -> EmbeddingPublicationFingerprint
pub const fn publication_fingerprint(&self) -> EmbeddingPublicationFingerprint
Exact persisted vector-file fingerprint.
Trait Implementations§
Source§impl Clone for EmbeddingGenerationManifest
impl Clone for EmbeddingGenerationManifest
Source§impl Debug for EmbeddingGenerationManifest
impl Debug for EmbeddingGenerationManifest
impl Eq for EmbeddingGenerationManifest
impl StructuralPartialEq for EmbeddingGenerationManifest
Auto Trait Implementations§
impl Freeze for EmbeddingGenerationManifest
impl RefUnwindSafe for EmbeddingGenerationManifest
impl Send for EmbeddingGenerationManifest
impl Sync for EmbeddingGenerationManifest
impl Unpin for EmbeddingGenerationManifest
impl UnsafeUnpin for EmbeddingGenerationManifest
impl UnwindSafe for EmbeddingGenerationManifest
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more