pub struct PackageValidationReport {
pub issues: Vec<PackageValidationIssue>,
}Expand description
Aggregated result of running all package validation rules.
Fields§
§issues: Vec<PackageValidationIssue>Implementations§
Source§impl PackageValidationReport
impl PackageValidationReport
pub fn is_valid(&self) -> bool
pub fn is_ok(&self) -> bool
pub fn error_count(&self) -> usize
pub fn push(&mut self, issue: PackageValidationIssue)
pub fn extend( &mut self, issues: impl IntoIterator<Item = PackageValidationIssue>, )
Sourcepub fn error_messages(&self) -> Vec<String>
pub fn error_messages(&self) -> Vec<String>
Flat string list of error messages (compat with legacy CompatReport).
pub fn issues_in_category( &self, category: ValidationCategory, ) -> impl Iterator<Item = &PackageValidationIssue>
Trait Implementations§
Source§impl Clone for PackageValidationReport
impl Clone for PackageValidationReport
Source§fn clone(&self) -> PackageValidationReport
fn clone(&self) -> PackageValidationReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PackageValidationReport
impl Debug for PackageValidationReport
Source§impl Default for PackageValidationReport
impl Default for PackageValidationReport
Source§fn default() -> PackageValidationReport
fn default() -> PackageValidationReport
Returns the “default value” for a type. Read more
impl Eq for PackageValidationReport
Source§impl From<PackageValidationReport> for CompatReport
impl From<PackageValidationReport> for CompatReport
Source§fn from(report: PackageValidationReport) -> Self
fn from(report: PackageValidationReport) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PackageValidationReport
impl PartialEq for PackageValidationReport
Source§fn eq(&self, other: &PackageValidationReport) -> bool
fn eq(&self, other: &PackageValidationReport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackageValidationReport
Auto Trait Implementations§
impl Freeze for PackageValidationReport
impl RefUnwindSafe for PackageValidationReport
impl Send for PackageValidationReport
impl Sync for PackageValidationReport
impl Unpin for PackageValidationReport
impl UnsafeUnpin for PackageValidationReport
impl UnwindSafe for PackageValidationReport
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