pub struct ParseIssue {
pub severity: IssueSeverity,
pub kind: IssueKind,
pub section: Option<String>,
pub message: String,
pub offset: Option<usize>,
pub expected: Option<usize>,
pub found: Option<usize>,
}Expand description
Detailed parse diagnostic emitted in lax mode.
Fields§
§severity: IssueSeverityError/warning level.
kind: IssueKindBroad issue category.
section: Option<String>Section name when known ("character", "attributes", …).
message: StringHuman-readable diagnostic message.
offset: Option<usize>Byte offset when known.
expected: Option<usize>Expected byte count/value when known.
found: Option<usize>Observed byte count/value when known.
Trait Implementations§
Source§impl Clone for ParseIssue
impl Clone for ParseIssue
Source§fn clone(&self) -> ParseIssue
fn clone(&self) -> ParseIssue
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 ParseIssue
impl Debug for ParseIssue
Source§impl<'de> Deserialize<'de> for ParseIssue
impl<'de> Deserialize<'de> for ParseIssue
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
Auto Trait Implementations§
impl Freeze for ParseIssue
impl RefUnwindSafe for ParseIssue
impl Send for ParseIssue
impl Sync for ParseIssue
impl Unpin for ParseIssue
impl UnsafeUnpin for ParseIssue
impl UnwindSafe for ParseIssue
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