pub enum PgJsonlError {
Json {
line: usize,
detail: String,
},
UnknownType {
line: usize,
kind: String,
},
EmptyField {
line: usize,
field: &'static str,
},
}Expand description
Errors from parsing PG-JSONL files.
Variants§
Json
A line is not a valid JSON object of a known record shape.
UnknownType
A record’s type is neither node nor edge/relationship.
EmptyField
An identifier field is empty.
Trait Implementations§
Source§impl Clone for PgJsonlError
impl Clone for PgJsonlError
Source§impl Debug for PgJsonlError
impl Debug for PgJsonlError
Source§impl Display for PgJsonlError
impl Display for PgJsonlError
impl Eq for PgJsonlError
Source§impl Error for PgJsonlError
impl Error for PgJsonlError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for PgJsonlError
impl PartialEq for PgJsonlError
impl StructuralPartialEq for PgJsonlError
Auto Trait Implementations§
impl Freeze for PgJsonlError
impl RefUnwindSafe for PgJsonlError
impl Send for PgJsonlError
impl Sync for PgJsonlError
impl Unpin for PgJsonlError
impl UnsafeUnpin for PgJsonlError
impl UnwindSafe for PgJsonlError
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