pub struct CheckReport {
pub keys: Vec<KeyCheck>,
}Expand description
The result of a read-only BackendManager::check pass.
Every catalog key is classified as present or missing (with its missing
policy), in catalog name order. Unlike BackendManager::reconcile, check
never creates or mutates anything; it only reports. A backend that is
unreachable during the probe is still a fatal error (the surrounding
Result’s Err), never silently read as “absent”.
Fields§
§keys: Vec<KeyCheck>One row per catalog key, in name order.
Implementations§
Source§impl CheckReport
impl CheckReport
Sourcepub fn present_count(&self) -> usize
pub fn present_count(&self) -> usize
Count of keys whose material is present.
Sourcepub fn missing(&self) -> impl Iterator<Item = (&str, MissingPolicy)>
pub fn missing(&self) -> impl Iterator<Item = (&str, MissingPolicy)>
All absent keys, in name order, with their missing policy.
Sourcepub fn required_missing(&self) -> Vec<&str>
pub fn required_missing(&self) -> Vec<&str>
The dotted names of absent keys whose missing policy is error: the
required keys whose absence would fail startup reconcile. This is the
predicate --require gates on: a CI check should fail iff this is
non-empty.
Sourcepub fn should_fail_required(&self) -> bool
pub fn should_fail_required(&self) -> bool
Whether a --require gate should fail: true iff at least one absent key
carries the error (required) policy. warn/generate-absent keys do
not trip this: they are not failures of a pre-deploy check.
Trait Implementations§
Source§impl Clone for CheckReport
impl Clone for CheckReport
Source§fn clone(&self) -> CheckReport
fn clone(&self) -> CheckReport
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 CheckReport
impl Debug for CheckReport
Source§impl Default for CheckReport
impl Default for CheckReport
Source§fn default() -> CheckReport
fn default() -> CheckReport
Auto Trait Implementations§
impl Freeze for CheckReport
impl RefUnwindSafe for CheckReport
impl Send for CheckReport
impl Sync for CheckReport
impl Unpin for CheckReport
impl UnsafeUnpin for CheckReport
impl UnwindSafe for CheckReport
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
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<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