pub struct ValidationIssue {
pub severity: Severity,
pub line: u32,
pub column: u32,
pub length: u32,
pub message: String,
pub code: String,
pub suggestion: Option<String>,
}Expand description
Represents a validation issue found in a package.py file.
Fields§
§severity: SeverityThe severity of the issue
line: u32The line number where the issue occurs (1-based)
column: u32The column number where the issue occurs (1-based)
length: u32The length of the problematic text
message: StringA human-readable message describing the issue
code: StringA unique code identifying the type of issue
suggestion: Option<String>Optional suggestion for fixing the issue
Implementations§
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 moreSource§impl Debug for ValidationIssue
impl Debug for ValidationIssue
Source§impl<'de> Deserialize<'de> for ValidationIssue
impl<'de> Deserialize<'de> for ValidationIssue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValidationIssue
impl PartialEq for ValidationIssue
Source§impl Serialize for ValidationIssue
impl Serialize for ValidationIssue
impl Eq for ValidationIssue
impl StructuralPartialEq for ValidationIssue
Auto Trait Implementations§
impl Freeze for ValidationIssue
impl RefUnwindSafe for ValidationIssue
impl Send for ValidationIssue
impl Sync for ValidationIssue
impl Unpin for ValidationIssue
impl UnsafeUnpin 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