pub struct DenialBody {
pub error: DenialError,
pub message: String,
pub reason: Option<String>,
}Expand description
JSON body emitted for authorization denials.
Fields§
§error: DenialErrorStable HTTP-facing denial category.
message: StringHuman-facing localized or configured message.
reason: Option<String>Specific stable reason code, omitted for hidden denials.
Trait Implementations§
Source§impl Clone for DenialBody
impl Clone for DenialBody
Source§fn clone(&self) -> DenialBody
fn clone(&self) -> DenialBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DenialBody
impl Debug for DenialBody
Source§impl<'de> Deserialize<'de> for DenialBody
impl<'de> Deserialize<'de> for DenialBody
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 DenialBody
Source§impl PartialEq for DenialBody
impl PartialEq for DenialBody
Source§impl Serialize for DenialBody
impl Serialize for DenialBody
impl StructuralPartialEq for DenialBody
Auto Trait Implementations§
impl Freeze for DenialBody
impl RefUnwindSafe for DenialBody
impl Send for DenialBody
impl Sync for DenialBody
impl Unpin for DenialBody
impl UnsafeUnpin for DenialBody
impl UnwindSafe for DenialBody
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