pub enum HttpDenyResponseFormat {
Text,
Json,
}Expand description
Wire format of HTTP denial responses.
Variants§
Text
Legacy plain-text network denials with host substitution.
Json
JSON network and secret denials with literal messages.
Trait Implementations§
Source§impl Clone for HttpDenyResponseFormat
impl Clone for HttpDenyResponseFormat
impl Copy for HttpDenyResponseFormat
Source§impl Debug for HttpDenyResponseFormat
impl Debug for HttpDenyResponseFormat
Source§impl Default for HttpDenyResponseFormat
impl Default for HttpDenyResponseFormat
Source§impl<'de> Deserialize<'de> for HttpDenyResponseFormat
impl<'de> Deserialize<'de> for HttpDenyResponseFormat
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
impl Eq for HttpDenyResponseFormat
Source§impl PartialEq for HttpDenyResponseFormat
impl PartialEq for HttpDenyResponseFormat
Source§impl Serialize for HttpDenyResponseFormat
impl Serialize for HttpDenyResponseFormat
impl StructuralPartialEq for HttpDenyResponseFormat
Auto Trait Implementations§
impl Freeze for HttpDenyResponseFormat
impl RefUnwindSafe for HttpDenyResponseFormat
impl Send for HttpDenyResponseFormat
impl Sync for HttpDenyResponseFormat
impl Unpin for HttpDenyResponseFormat
impl UnsafeUnpin for HttpDenyResponseFormat
impl UnwindSafe for HttpDenyResponseFormat
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