pub struct GlobalBlocklist {
pub operations: HashSet<String>,
pub patterns: HashSet<String>,
pub categories: HashSet<OperationCategory>,
pub risk_levels: HashSet<OperationRiskLevel>,
}Expand description
Global blocklist - these operations are never exposed.
Fields§
§operations: HashSet<String>Blocked operation IDs (exact match).
patterns: HashSet<String>Blocked patterns (glob matching).
- OpenAPI: “METHOD /path/” or “ /path/*”
- GraphQL: “Type.field*” or “*.field”
- SQL: “action table” or “* table”
categories: HashSet<OperationCategory>Blocked categories.
risk_levels: HashSet<OperationRiskLevel>Blocked risk levels.
Implementations§
Source§impl GlobalBlocklist
impl GlobalBlocklist
Sourcepub fn is_blocked(&self, operation: &Operation) -> Option<FilterReason>
pub fn is_blocked(&self, operation: &Operation) -> Option<FilterReason>
Check if an operation is blocked by this blocklist.
Trait Implementations§
Source§impl Clone for GlobalBlocklist
impl Clone for GlobalBlocklist
Source§fn clone(&self) -> GlobalBlocklist
fn clone(&self) -> GlobalBlocklist
Returns a duplicate of the value. Read more
1.0.0 · 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 GlobalBlocklist
impl Debug for GlobalBlocklist
Source§impl Default for GlobalBlocklist
impl Default for GlobalBlocklist
Source§fn default() -> GlobalBlocklist
fn default() -> GlobalBlocklist
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GlobalBlocklist
impl<'de> Deserialize<'de> for GlobalBlocklist
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GlobalBlocklist
impl RefUnwindSafe for GlobalBlocklist
impl Send for GlobalBlocklist
impl Sync for GlobalBlocklist
impl Unpin for GlobalBlocklist
impl UnsafeUnpin for GlobalBlocklist
impl UnwindSafe for GlobalBlocklist
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