pub struct CommandImpact {
pub findings: Vec<Finding>,
}Expand description
The full impact analysis of a command: an ordered, de-duplicated set of findings. No findings means the command is read-only.
Fields§
§findings: Vec<Finding>Implementations§
Source§impl CommandImpact
impl CommandImpact
Sourcepub fn verdict(&self) -> Severity
pub fn verdict(&self) -> Severity
The headline verdict: the worst severity across all findings, or
Severity::ReadOnly when there are none.
Sourcepub fn callouts(&self) -> Vec<&Finding>
pub fn callouts(&self) -> Vec<&Finding>
Findings worst-severity first (stable within a severity), for the card’s callout list. The caller caps the count.
Sourcepub fn is_elevated_or_destructive(&self) -> bool
pub fn is_elevated_or_destructive(&self) -> bool
True when the command needs a careful read before a fleet run: anything above a plain state write.
Trait Implementations§
Source§impl Clone for CommandImpact
impl Clone for CommandImpact
Source§fn clone(&self) -> CommandImpact
fn clone(&self) -> CommandImpact
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CommandImpact
impl Debug for CommandImpact
Source§impl Default for CommandImpact
impl Default for CommandImpact
Source§fn default() -> CommandImpact
fn default() -> CommandImpact
Returns the “default value” for a type. Read more
impl Eq for CommandImpact
Source§impl PartialEq for CommandImpact
impl PartialEq for CommandImpact
Source§fn eq(&self, other: &CommandImpact) -> bool
fn eq(&self, other: &CommandImpact) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CommandImpact
Auto Trait Implementations§
impl Freeze for CommandImpact
impl RefUnwindSafe for CommandImpact
impl Send for CommandImpact
impl Sync for CommandImpact
impl Unpin for CommandImpact
impl UnsafeUnpin for CommandImpact
impl UnwindSafe for CommandImpact
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
Mutably borrows from an owned value. Read more
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
Compare self to
key and return true if they are equal.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>
Converts
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>
Converts
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