pub struct RegisteredGuard {
pub bus_injectors: Vec<BusInjectorFn>,
pub response_extractor: Option<ResponseExtractorFn>,
pub response_body_transform: Option<ResponseBodyTransformFn>,
pub exec: Arc<dyn GuardExec>,
pub handles_preflight: bool,
pub preflight_config: Option<PreflightConfig>,
}Expand description
The complete registration bundle for a Guard integrated with HttpIngress.
Fields§
§bus_injectors: Vec<BusInjectorFn>Bus injectors that extract HTTP request data for this Guard.
response_extractor: Option<ResponseExtractorFn>Optional response extractor that applies Bus data to response headers.
response_body_transform: Option<ResponseBodyTransformFn>Optional response body transform (e.g., compression).
exec: Arc<dyn GuardExec>Type-erased guard executor.
handles_preflight: boolWhether this guard handles OPTIONS preflight requests.
preflight_config: Option<PreflightConfig>CORS config for preflight responses (only set by CorsGuard).
Auto Trait Implementations§
impl Freeze for RegisteredGuard
impl !RefUnwindSafe for RegisteredGuard
impl Send for RegisteredGuard
impl Sync for RegisteredGuard
impl Unpin for RegisteredGuard
impl UnsafeUnpin for RegisteredGuard
impl !UnwindSafe for RegisteredGuard
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