#[non_exhaustive]pub enum RequestDecision {
Allow,
Block(String),
}Expand description
Decision returned by SDK request handlers.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl RequestDecision
impl RequestDecision
Sourcepub fn into_response(self, request_id: String) -> InspectResponse
pub fn into_response(self, request_id: String) -> InspectResponse
Encodes a handler decision for its original request.
Trait Implementations§
Auto Trait Implementations§
impl Forget for RequestDecision
impl Freeze for RequestDecision
impl RefUnwindSafe for RequestDecision
impl Send for RequestDecision
impl Sync for RequestDecision
impl Unpin for RequestDecision
impl UnsafeUnpin for RequestDecision
impl UnwindSafe for RequestDecision
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