pub enum EnvelopeExtractError {
JsonParse(String),
JsonSerialize(String),
InvalidResponseFormat,
Upstream(String),
}Expand description
Errors produced while parsing or extracting a response envelope.
Variants§
JsonParse(String)
Input could not be parsed as JSON.
JsonSerialize(String)
Extracted value could not be serialized back to JSON.
InvalidResponseFormat
Envelope is not a JSON object.
Upstream(String)
Upstream returned { "ok": false, "error": ... }.
Trait Implementations§
Source§impl Clone for EnvelopeExtractError
impl Clone for EnvelopeExtractError
Source§fn clone(&self) -> EnvelopeExtractError
fn clone(&self) -> EnvelopeExtractError
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 EnvelopeExtractError
impl Debug for EnvelopeExtractError
Source§impl Display for EnvelopeExtractError
impl Display for EnvelopeExtractError
Source§impl Error for EnvelopeExtractError
impl Error for EnvelopeExtractError
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 EnvelopeExtractError
impl PartialEq for EnvelopeExtractError
impl Eq for EnvelopeExtractError
impl StructuralPartialEq for EnvelopeExtractError
Auto Trait Implementations§
impl Freeze for EnvelopeExtractError
impl RefUnwindSafe for EnvelopeExtractError
impl Send for EnvelopeExtractError
impl Sync for EnvelopeExtractError
impl Unpin for EnvelopeExtractError
impl UnsafeUnpin for EnvelopeExtractError
impl UnwindSafe for EnvelopeExtractError
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