pub struct HttpException {
pub status: StatusCode,
pub message: String,
pub error: &'static str,
pub errors: Option<BTreeMap<String, Vec<String>>>,
pub source: Option<Error>,
}Expand description
Re-exported public API.
Public Caelix type HttpException.
Fields§
§status: StatusCodeThe status value.
message: StringThe message value.
error: &'static strThe error value.
errors: Option<BTreeMap<String, Vec<String>>>The errors value.
source: Option<Error>The source value.
Implementations§
Source§impl HttpException
impl HttpException
Sourcepub fn new(
status: StatusCode,
error: &'static str,
message: impl Into<String>,
) -> Self
pub fn new( status: StatusCode, error: &'static str, message: impl Into<String>, ) -> Self
Runs the new public API operation.
Sourcepub fn with_source(self, err: impl Into<Error>) -> Self
pub fn with_source(self, err: impl Into<Error>) -> Self
Runs the with_source public API operation.
Trait Implementations§
Source§impl Debug for HttpException
impl Debug for HttpException
Source§impl IntoCaelixResponse for HttpException
impl IntoCaelixResponse for HttpException
Source§fn into_response(self) -> HttpResponse
fn into_response(self) -> HttpResponse
Public Caelix API.
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