pub struct DenialResponse {
pub status: StatusCode,
pub body: DenialBody,
}Expand description
HTTP denial response produced by a policy denial.
Fields§
§status: StatusCodeHTTP status selected from the denial shape.
body: DenialBodyJSON response body.
Trait Implementations§
Source§impl Clone for DenialResponse
impl Clone for DenialResponse
Source§fn clone(&self) -> DenialResponse
fn clone(&self) -> DenialResponse
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 DenialResponse
impl Debug for DenialResponse
impl Eq for DenialResponse
Source§impl<Resolve, Audit> From<DenialResponse> for GatekeepRejection<Resolve, Audit>
impl<Resolve, Audit> From<DenialResponse> for GatekeepRejection<Resolve, Audit>
Source§fn from(response: DenialResponse) -> Self
fn from(response: DenialResponse) -> Self
Converts to this type from the input type.
Source§impl IntoResponse for DenialResponse
impl IntoResponse for DenialResponse
Source§fn into_response(self) -> Response
fn into_response(self) -> Response
Create a response.
Source§impl PartialEq for DenialResponse
impl PartialEq for DenialResponse
Source§fn eq(&self, other: &DenialResponse) -> bool
fn eq(&self, other: &DenialResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DenialResponse
Auto Trait Implementations§
impl Freeze for DenialResponse
impl RefUnwindSafe for DenialResponse
impl Send for DenialResponse
impl Sync for DenialResponse
impl Unpin for DenialResponse
impl UnsafeUnpin for DenialResponse
impl UnwindSafe for DenialResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, S> Handler<IntoResponseHandler, S> for T
impl<T, S> Handler<IntoResponseHandler, S> for T
Source§fn call(
self,
_req: Request<Body>,
_state: S,
) -> <T as Handler<IntoResponseHandler, S>>::Future
fn call( self, _req: Request<Body>, _state: S, ) -> <T as Handler<IntoResponseHandler, S>>::Future
Call the handler with the given request.
Source§fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
fn layer<L>(self, layer: L) -> Layered<L, Self, T, S>where
L: Layer<HandlerService<Self, T, S>> + Clone,
<L as Layer<HandlerService<Self, T, S>>>::Service: Service<Request<Body>>,
Apply a
tower::Layer to the handler. Read moreSource§fn with_state(self, state: S) -> HandlerService<Self, T, S>
fn with_state(self, state: S) -> HandlerService<Self, T, S>
Convert the handler into a
Service by providing the stateSource§impl<H, T> HandlerWithoutStateExt<T> for H
impl<H, T> HandlerWithoutStateExt<T> for H
Source§fn into_service(self) -> HandlerService<H, T, ()>
fn into_service(self) -> HandlerService<H, T, ()>
Convert the handler into a
Service and no state.Source§fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
fn into_make_service(self) -> IntoMakeService<HandlerService<H, T, ()>>
Convert the handler into a
MakeService and no state. Read moreSource§fn into_make_service_with_connect_info<C>(
self,
) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
fn into_make_service_with_connect_info<C>( self, ) -> IntoMakeServiceWithConnectInfo<HandlerService<H, T, ()>, C>
Convert the handler into a
MakeService which stores information
about the incoming connection and has no state. Read more