pub struct ValidationIssue {
pub severity: ValidationSeverity,
pub code: ErrorCode,
pub message: String,
pub location: Option<Location>,
pub suggestion: Option<String>,
}Expand description
Validation issue (warning or info level)
Fields§
§severity: ValidationSeverity§code: ErrorCode§message: String§location: Option<Location>§suggestion: Option<String>Implementations§
Source§impl ValidationIssue
impl ValidationIssue
pub fn error(code: ErrorCode, message: impl Into<String>) -> Self
pub fn warning(code: ErrorCode, message: impl Into<String>) -> Self
pub fn info(code: ErrorCode, message: impl Into<String>) -> Self
pub fn with_location(self, location: Location) -> Self
pub fn with_suggestion(self, suggestion: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ValidationIssue
impl Clone for ValidationIssue
Source§fn clone(&self) -> ValidationIssue
fn clone(&self) -> ValidationIssue
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ValidationIssue
impl RefUnwindSafe for ValidationIssue
impl Send for ValidationIssue
impl Sync for ValidationIssue
impl Unpin for ValidationIssue
impl UnwindSafe for ValidationIssue
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