pub struct RebuildResult {
pub root: PathBuf,
pub status: RebuildStatus,
pub duration_ms: Option<u64>,
pub nodes: Option<u64>,
pub edges: Option<u64>,
pub files_indexed: Option<u64>,
pub was_full: Option<bool>,
}Expand description
daemon/rebuild success result payload (schema_version 2 — see
cluster-G §2.4).
Serialised under the result field of ResponseEnvelope. The
stat fields are Option-typed because --timeout 0 callers
receive them populated only when status == Completed.
Fields§
§root: PathBufThe canonicalised workspace root path that was rebuilt.
status: RebuildStatusOutcome of the dispatch. New in cluster-G §2.4. Older clients
that pre-date the schema bump are tolerated by the
#[serde(default)] here — they read the field as Completed
and continue to work because pre-§2.4 daemons only ever
produced the completed shape.
duration_ms: Option<u64>Wall-clock time the rebuild took, in milliseconds. Populated
only when status == Completed.
nodes: Option<u64>Node count of the freshly published graph. Populated only
when status == Completed.
edges: Option<u64>Edge count of the freshly published graph. Populated only
when status == Completed.
files_indexed: Option<u64>Number of source files indexed in the freshly published
graph. Populated only when status == Completed.
was_full: Option<bool>true when the rebuild was a full (non-incremental) rebuild.
Populated only when status == Completed.
Trait Implementations§
Source§impl Clone for RebuildResult
impl Clone for RebuildResult
Source§fn clone(&self) -> RebuildResult
fn clone(&self) -> RebuildResult
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more