pub struct HttpAclHooks {
pub validate_fn: Option<ValidateFn>,
pub modify_request_fn: Option<ModifyRequestFn>,
pub modify_response_fn: Option<ModifyResponseFn>,
}Expand description
The runtime hooks attached to an HttpAcl at build time, via
HttpAclBuilder::build_full/HttpAclBuilder::try_build_full.
Each field is typically a closure that captures state from outside the builder
(a database handle, a secret, and so on), which is why these aren’t set through
dedicated builder setter methods the way most of HttpAclBuilder’s other
configuration is.
Fields§
§validate_fn: Option<ValidateFn>See ValidateFn.
modify_request_fn: Option<ModifyRequestFn>See ModifyRequestFn.
modify_response_fn: Option<ModifyResponseFn>See ModifyResponseFn.
Trait Implementations§
Source§impl Clone for HttpAclHooks
impl Clone for HttpAclHooks
Source§fn clone(&self) -> HttpAclHooks
fn clone(&self) -> HttpAclHooks
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 Default for HttpAclHooks
impl Default for HttpAclHooks
Source§fn default() -> HttpAclHooks
fn default() -> HttpAclHooks
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for HttpAclHooks
impl !UnwindSafe for HttpAclHooks
impl Freeze for HttpAclHooks
impl Send for HttpAclHooks
impl Sync for HttpAclHooks
impl Unpin for HttpAclHooks
impl UnsafeUnpin for HttpAclHooks
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