pub struct ArtifactMetadata {
pub collection: String,
pub state: ArtifactState,
pub encoded_artifact_present: bool,
pub params: Option<TurboArtifactParams>,
pub scalar_fallback_active: bool,
pub rebuild_progress_pct: Option<u8>,
pub last_error: Option<String>,
}Expand description
Per-collection metadata about the on-disk / in-memory artifact (TurboQuant / TurboVec / scalar fallback). Carries enough for Red UI to render the toolbar without inspecting the engine.
Fields§
§collection: String§state: ArtifactState§encoded_artifact_present: boolTrue when an encoded artifact (e.g. a .tv snapshot) is
present and loadable; orthogonal to state because an
artifact can be present-but-Fallback or
present-but-Building (a newer one is being rebuilt over it).
params: Option<TurboArtifactParams>Stable, operator-facing slice of the TurboQuant / TurboVec
parameters. None for scalar-only collections.
scalar_fallback_active: boolWhether SEARCH is currently being answered (or could be) from the scalar fallback path rather than the artifact.
rebuild_progress_pct: Option<u8>0..=100, when the builder can estimate it; None otherwise
(including outside Building).
last_error: Option<String>Operator-facing message from the most recent build failure.
Populated in Failed; may also be populated in Fallback to
explain why we are falling back. Cleared when the next build
succeeds.
Trait Implementations§
Source§impl Clone for ArtifactMetadata
impl Clone for ArtifactMetadata
Source§fn clone(&self) -> ArtifactMetadata
fn clone(&self) -> ArtifactMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ArtifactMetadata
impl Debug for ArtifactMetadata
impl Eq for ArtifactMetadata
Source§impl PartialEq for ArtifactMetadata
impl PartialEq for ArtifactMetadata
Source§fn eq(&self, other: &ArtifactMetadata) -> bool
fn eq(&self, other: &ArtifactMetadata) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ArtifactMetadata
Auto Trait Implementations§
impl Freeze for ArtifactMetadata
impl RefUnwindSafe for ArtifactMetadata
impl Send for ArtifactMetadata
impl Sync for ArtifactMetadata
impl Unpin for ArtifactMetadata
impl UnsafeUnpin for ArtifactMetadata
impl UnwindSafe for ArtifactMetadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request