pub struct ValidationOutcome {
pub valid_links: Vec<Link>,
pub invalid_links: Vec<InvalidLink>,
pub ignored: Vec<Link>,
pub unknown_category: Vec<Link>,
pub incomplete_links: Vec<IncompleteLink>,
}Expand description
The outcome of validating a set of links.
Fields§
§valid_links: Vec<Link>Valid links.
invalid_links: Vec<InvalidLink>Links where validation failed.
ignored: Vec<Link>Links which have been ignored (e.g. due to
Config::follow_web_links).
unknown_category: Vec<Link>Links which we don’t know how to handle.
incomplete_links: Vec<IncompleteLink>Potentially incomplete links.
Implementations§
Source§impl ValidationOutcome
impl ValidationOutcome
Sourcepub fn generate_diagnostics(
&self,
files: &Files<String>,
warning_policy: WarningPolicy,
) -> Vec<Diagnostic<FileId>>
pub fn generate_diagnostics( &self, files: &Files<String>, warning_policy: WarningPolicy, ) -> Vec<Diagnostic<FileId>>
Generate a list of Diagnostic messages from this
ValidationOutcome.
Trait Implementations§
Source§impl Debug for ValidationOutcome
impl Debug for ValidationOutcome
Source§impl Default for ValidationOutcome
impl Default for ValidationOutcome
Source§fn default() -> ValidationOutcome
fn default() -> ValidationOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ValidationOutcome
impl !RefUnwindSafe for ValidationOutcome
impl Send for ValidationOutcome
impl Sync for ValidationOutcome
impl Unpin for ValidationOutcome
impl !UnwindSafe for ValidationOutcome
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