pub struct ParseWarning {
pub line: usize,
pub kind: WarningKind,
pub message: String,
}Expand description
Something a lenient reader accepted but flagged, such as a missing entry separator.
Fields§
§line: usizeThe 1-based line number the warning is about.
kind: WarningKindWhether data was lost.
message: StringWhat was accepted, and how it was read.
Trait Implementations§
Source§impl Clone for ParseWarning
impl Clone for ParseWarning
Source§fn clone(&self) -> ParseWarning
fn clone(&self) -> ParseWarning
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 ParseWarning
impl Debug for ParseWarning
Source§impl<'de> Deserialize<'de> for ParseWarning
impl<'de> Deserialize<'de> for ParseWarning
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
impl Eq for ParseWarning
Source§impl PartialEq for ParseWarning
impl PartialEq for ParseWarning
Source§fn eq(&self, other: &ParseWarning) -> bool
fn eq(&self, other: &ParseWarning) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParseWarning
impl Serialize for ParseWarning
impl StructuralPartialEq for ParseWarning
Auto Trait Implementations§
impl Freeze for ParseWarning
impl RefUnwindSafe for ParseWarning
impl Send for ParseWarning
impl Sync for ParseWarning
impl Unpin for ParseWarning
impl UnsafeUnpin for ParseWarning
impl UnwindSafe for ParseWarning
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