#[non_exhaustive]pub enum PolicyLocation {
Rules,
Floor,
HttpHeader,
HttpQuery,
HttpBody,
HttpMasking,
}Expand description
Policy construction context where a validation error occurred.
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.
Rules
Regular field-rule construction context.
Floor
Floor construction context.
HttpHeader
HTTP header field rules in an HTTP policy builder.
HttpQuery
HTTP query and form field rules in an HTTP policy builder.
HttpBody
HTTP body field rules in an HTTP policy builder.
HttpMasking
Shared HTTP masking policy.
Trait Implementations§
Source§impl Clone for PolicyLocation
impl Clone for PolicyLocation
Source§fn clone(&self) -> PolicyLocation
fn clone(&self) -> PolicyLocation
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 moreimpl Copy for PolicyLocation
Source§impl Debug for PolicyLocation
impl Debug for PolicyLocation
Source§impl Display for PolicyLocation
impl Display for PolicyLocation
impl Eq for PolicyLocation
Source§impl PartialEq for PolicyLocation
impl PartialEq for PolicyLocation
impl StructuralPartialEq for PolicyLocation
Auto Trait Implementations§
impl Freeze for PolicyLocation
impl RefUnwindSafe for PolicyLocation
impl Send for PolicyLocation
impl Sync for PolicyLocation
impl Unpin for PolicyLocation
impl UnsafeUnpin for PolicyLocation
impl UnwindSafe for PolicyLocation
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