pub struct ValidationSummary {
pub checks_passed: Vec<String>,
pub checks_skipped: Vec<String>,
pub warnings: Vec<String>,
}Expand description
Summary of validation checks that passed during promotion.
Fields§
§checks_passed: Vec<String>Names of checks that passed
checks_skipped: Vec<String>Names of checks that were skipped (with reasons)
warnings: Vec<String>Warnings generated during validation
Implementations§
Source§impl ValidationSummary
impl ValidationSummary
Sourcepub fn new() -> ValidationSummary
pub fn new() -> ValidationSummary
Create a new empty validation summary.
Sourcepub fn with_passed(self, check: impl Into<String>) -> ValidationSummary
pub fn with_passed(self, check: impl Into<String>) -> ValidationSummary
Add a passed check.
Sourcepub fn with_skipped(self, check: impl Into<String>) -> ValidationSummary
pub fn with_skipped(self, check: impl Into<String>) -> ValidationSummary
Add a skipped check.
Sourcepub fn with_warning(self, warning: impl Into<String>) -> ValidationSummary
pub fn with_warning(self, warning: impl Into<String>) -> ValidationSummary
Add a warning.
Trait Implementations§
Source§impl Clone for ValidationSummary
impl Clone for ValidationSummary
Source§fn clone(&self) -> ValidationSummary
fn clone(&self) -> ValidationSummary
Returns a duplicate of the value. Read more
1.0.0 · 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 ValidationSummary
impl Debug for ValidationSummary
Source§impl Default for ValidationSummary
impl Default for ValidationSummary
Source§fn default() -> ValidationSummary
fn default() -> ValidationSummary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ValidationSummary
impl<'de> Deserialize<'de> for ValidationSummary
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValidationSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ValidationSummary, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for ValidationSummary
impl Serialize for ValidationSummary
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for ValidationSummary
impl RefUnwindSafe for ValidationSummary
impl Send for ValidationSummary
impl Sync for ValidationSummary
impl Unpin for ValidationSummary
impl UnsafeUnpin for ValidationSummary
impl UnwindSafe for ValidationSummary
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