pub struct Validation {
pub valid: bool,
pub id: &'static str,
pub elements: Vec<String>,
pub message: String,
}Expand description
the validation response
Fields§
§valid: boolis valid
id: &'static strthe sub-technique
elements: Vec<String>elements that match the issue
message: Stringthe message of the error
Implementations§
Trait Implementations§
Source§impl Debug for Validation
impl Debug for Validation
Source§impl Default for Validation
impl Default for Validation
Source§fn default() -> Validation
fn default() -> Validation
Returns the “default value” for a type. Read more
Source§impl From<Validation> for RuleValidation
impl From<Validation> for RuleValidation
Source§fn from(t: Validation) -> Self
fn from(t: Validation) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Validation
impl RefUnwindSafe for Validation
impl Send for Validation
impl Sync for Validation
impl Unpin for Validation
impl UnwindSafe for Validation
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> 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