pub struct ValidationReport(pub Vec<PidValidationError>);Expand description
A collection of validation errors for a PID.
Tuple Fields§
§0: Vec<PidValidationError>Implementations§
Source§impl ValidationReport
impl ValidationReport
Sourcepub fn has_errors(&self) -> bool
pub fn has_errors(&self) -> bool
Returns true if the report contains any errors (not just warnings).
Sourcepub fn errors(&self) -> Vec<&PidValidationError>
pub fn errors(&self) -> Vec<&PidValidationError>
Returns only the errors (not warnings).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ValidationReport
impl RefUnwindSafe for ValidationReport
impl Send for ValidationReport
impl Sync for ValidationReport
impl Unpin for ValidationReport
impl UnsafeUnpin 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