pub struct HttpException {
pub module_path: Vec<String>,
pub ident: String,
pub status: u16,
pub headers: Vec<HttpExceptionMember>,
pub cookies: Vec<HttpExceptionMember>,
pub body: Vec<HttpExceptionField>,
}Expand description
An exception declaration with its HTTP error-channel semantics.
Members annotated @header/@cookie become the error response’s
headers/cookies; unannotated members form the JSON error body.
Fields§
§module_path: Vec<String>§ident: String§status: u16HTTP status code bound via @http(<status>) / @http(status = <status>).
headers: Vec<HttpExceptionMember>§body: Vec<HttpExceptionField>Trait Implementations§
Source§impl Clone for HttpException
impl Clone for HttpException
Source§impl Debug for HttpException
impl Debug for HttpException
Source§impl<'de> Deserialize<'de> for HttpException
impl<'de> Deserialize<'de> for HttpException
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpException
impl RefUnwindSafe for HttpException
impl Send for HttpException
impl Sync for HttpException
impl Unpin for HttpException
impl UnsafeUnpin for HttpException
impl UnwindSafe for HttpException
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