pub struct ValidationResult { /* private fields */ }Expand description
Validation result
Implementations§
Source§impl ValidationResult
impl ValidationResult
pub fn new() -> Self
pub fn is_valid(&self) -> bool
pub fn errors(&self) -> &[ValidationError]
pub fn add_error(&mut self, error: ValidationError)
pub fn merge(&mut self, other: ValidationResult)
Trait Implementations§
Source§impl Debug for ValidationResult
impl Debug for ValidationResult
Auto Trait Implementations§
impl Freeze for ValidationResult
impl RefUnwindSafe for ValidationResult
impl Send for ValidationResult
impl Sync for ValidationResult
impl Unpin for ValidationResult
impl UnsafeUnpin for ValidationResult
impl UnwindSafe for ValidationResult
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