pub struct ErrorOptions {
pub code: bool,
}Expand description
How error bodies are rendered (configuration section http.errors).
[http.errors]
code = trueFields§
§code: boolSend the machine-readable code member in every error body (default
true). false leaves it out (APP_HTTP__ERRORS__CODE=false).
Trait Implementations§
Source§impl Clone for ErrorOptions
impl Clone for ErrorOptions
Source§impl ConfigTable for ErrorOptions
impl ConfigTable for ErrorOptions
Source§impl Debug for ErrorOptions
impl Debug for ErrorOptions
Source§impl Default for ErrorOptions
impl Default for ErrorOptions
Source§impl<'de> Deserialize<'de> for ErrorOptionswhere
ErrorOptions: Default,
impl<'de> Deserialize<'de> for ErrorOptionswhere
ErrorOptions: Default,
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 Forget for ErrorOptions
impl Freeze for ErrorOptions
impl Move for ErrorOptions
impl RefUnwindSafe for ErrorOptions
impl Send for ErrorOptions
impl Sync for ErrorOptions
impl Unpin for ErrorOptions
impl UnsafeUnpin for ErrorOptions
impl UnwindSafe for ErrorOptions
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