pub struct JsonError {
pub message: String,
pub line: usize,
pub column: usize,
pub syntax: bool,
}Expand description
A serde_json error as the parser reported it.
Fields§
§message: Stringserde’s message, position included ("… at line 3 column 7").
line: usize1-based; 0 when serde has no position.
column: usize§syntax: boolMalformed or truncated JSON, as opposed to valid JSON of the wrong shape.
Implementations§
Trait Implementations§
impl Eq for JsonError
impl StructuralPartialEq for JsonError
Auto Trait Implementations§
impl Freeze for JsonError
impl RefUnwindSafe for JsonError
impl Send for JsonError
impl Sync for JsonError
impl Unpin for JsonError
impl UnsafeUnpin for JsonError
impl UnwindSafe for JsonError
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