pub struct BackendStatus {
pub error: Option<String>,
pub hits: Option<i32>,
pub name: Option<String>,
pub status: Option<String>,
pub took_ms: Option<i32>,
}Fields§
§error: Option<String>Error is the failure text from a leg whose status is degraded — the reason a configured backend could not answer. Absent otherwise.
hits: Option<i32>Hits is how many results this leg returned, counted BEFORE fusion, so it is not the number that survived into Fusion.Hits — fusion merges what both legs found and the caller’s limit and offset then page it. 0 for a leg that did not run.
name: Option<String>Name is which leg this reports: "index", the lexical store, "vector", the semantic one, or "code", the org’s own repositories. Match.Backend uses the same three names.
status: Option<String>Status is one of ok, degraded, disabled, skipped — four distinct operational facts that are never collapsed. It ran and answered; it is configured and FAILED (Error says how, and only this one is a fault); this deployment never provisioned it; or the request’s mode excluded it.
took_ms: Option<i32>TookMS is how long this leg took, in milliseconds, timed around its own call and excluding fusion. 0 for a leg that was skipped or is disabled, since nothing was called.
Implementations§
Source§impl BackendStatus
impl BackendStatus
pub fn new() -> BackendStatus
Trait Implementations§
Source§impl Clone for BackendStatus
impl Clone for BackendStatus
Source§fn clone(&self) -> BackendStatus
fn clone(&self) -> BackendStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more