Enum cosworth::prelude::JsonPayloadError
source · pub enum JsonPayloadError {
Overflow,
ContentType,
Deserialize(Error),
Payload(PayloadError),
}
Expand description
A set of errors that can occur during parsing json payloads
Variants§
Overflow
Payload size is bigger than allowed. (default: 256kB)
ContentType
Content type error
Deserialize(Error)
Deserialize error
Payload(PayloadError)
Payload error
Trait Implementations§
source§impl Debug for JsonPayloadError
impl Debug for JsonPayloadError
source§impl Display for JsonPayloadError
impl Display for JsonPayloadError
source§impl Fail for JsonPayloadError
impl Fail for JsonPayloadError
source§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moresource§impl From<Error> for JsonPayloadError
impl From<Error> for JsonPayloadError
source§fn from(err: Error) -> JsonPayloadError
fn from(err: Error) -> JsonPayloadError
Converts to this type from the input type.
source§impl From<PayloadError> for JsonPayloadError
impl From<PayloadError> for JsonPayloadError
source§fn from(err: PayloadError) -> JsonPayloadError
fn from(err: PayloadError) -> JsonPayloadError
Converts to this type from the input type.
source§impl ResponseError for JsonPayloadError
impl ResponseError for JsonPayloadError
Return BadRequest
for UrlencodedError
source§fn error_response(&self) -> HttpResponse
fn error_response(&self) -> HttpResponse
Create response for error Read more
Auto Trait Implementations§
impl !RefUnwindSafe for JsonPayloadError
impl Send for JsonPayloadError
impl Sync for JsonPayloadError
impl Unpin for JsonPayloadError
impl !UnwindSafe for JsonPayloadError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more