pub enum ConvertError {
InvalidJson(String),
UnsupportedEndpoint(String),
MissingCollection,
UndecodableBody {
detail: String,
},
InvalidField {
path: String,
detail: String,
},
InvalidLine {
line: usize,
source: Box<ConvertError>,
},
}Expand description
Typed conversion failure.
Returned by convert and convert_stmts.
Variants§
InvalidJson(String)
The input is not valid JSON. Holds the underlying parse message.
UnsupportedEndpoint(String)
A wrapped request targets an endpoint with no QQL mapping.
Holds "METHOD path".
MissingCollection
A bare body was given without a collection name.
UndecodableBody
The body is absent or structurally undecodable for the endpoint. Holds a human-readable reason.
InvalidField
A structurally recognized body has an invalid or unrepresentable
field at path (e.g. points[0].vector).
Fields
InvalidLine
A JSONL capture line failed to convert. Holds the 1-based line number and the underlying error.
Fields
§
source: Box<ConvertError>The conversion error raised for that line.
Trait Implementations§
Source§impl Clone for ConvertError
impl Clone for ConvertError
Source§impl Debug for ConvertError
impl Debug for ConvertError
Source§impl Display for ConvertError
impl Display for ConvertError
impl Eq for ConvertError
Source§impl Error for ConvertError
impl Error for ConvertError
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 ConvertError
impl PartialEq for ConvertError
impl StructuralPartialEq for ConvertError
Auto Trait Implementations§
impl Freeze for ConvertError
impl RefUnwindSafe for ConvertError
impl Send for ConvertError
impl Sync for ConvertError
impl Unpin for ConvertError
impl UnsafeUnpin for ConvertError
impl UnwindSafe for ConvertError
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