pub struct ValidationReport {
pub errors: Vec<String>,
pub warnings: Vec<String>,
}Fields§
§errors: Vec<String>§warnings: Vec<String>Implementations§
Source§impl ValidationReport
impl ValidationReport
pub fn new() -> Self
pub fn add_error(&mut self, error: String)
pub fn add_warning(&mut self, warning: String)
pub fn has_errors(&self) -> bool
pub fn has_warnings(&self) -> bool
pub fn format_errors(&self) -> String
pub fn format_warnings(&self) -> String
Trait Implementations§
Source§impl Debug for ValidationReport
impl Debug for ValidationReport
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnwindSafe for ValidationReport
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