pub enum FilterReason {
Show 14 variants
GlobalBlocklistOperation {
operation_id: String,
},
GlobalBlocklistPattern {
pattern: String,
},
GlobalBlocklistCategory {
category: OperationCategory,
},
GlobalBlocklistRiskLevel {
level: OperationRiskLevel,
},
ToolBlocklist,
ToolBlocklistPattern {
pattern: String,
},
ToolNotInAllowlist,
ToolDenyAllMode,
CodeModeBlocklist,
CodeModeBlocklistPattern {
pattern: String,
},
MethodBlocklist {
method_type: String,
},
MethodBlocklistPattern {
method_type: String,
pattern: String,
},
MethodNotInAllowlist {
method_type: String,
},
MethodDenyAllMode {
method_type: String,
},
}Expand description
Why an operation was filtered.
Variants§
GlobalBlocklistOperation
Blocked by global blocklist (exact operation ID match).
GlobalBlocklistPattern
Blocked by global blocklist (pattern match).
GlobalBlocklistCategory
Blocked by global blocklist (category).
Fields
§
category: OperationCategoryGlobalBlocklistRiskLevel
Blocked by global blocklist (risk level).
Fields
§
level: OperationRiskLevelToolBlocklist
Blocked by tool blocklist.
ToolBlocklistPattern
Blocked by tool blocklist pattern.
ToolNotInAllowlist
Not in tool allowlist.
ToolDenyAllMode
Tool policy is deny_all.
CodeModeBlocklist
Blocked by code mode blocklist.
CodeModeBlocklistPattern
Blocked by code mode blocklist pattern.
MethodBlocklist
Blocked by method blocklist.
MethodBlocklistPattern
Blocked by method blocklist pattern.
MethodNotInAllowlist
Not in method allowlist.
MethodDenyAllMode
Method policy is deny_all.
Implementations§
Source§impl FilterReason
impl FilterReason
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Get a human-readable description of the filter reason.
Trait Implementations§
Source§impl Clone for FilterReason
impl Clone for FilterReason
Source§fn clone(&self) -> FilterReason
fn clone(&self) -> FilterReason
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 FilterReason
impl Debug for FilterReason
Source§impl<'de> Deserialize<'de> for FilterReason
impl<'de> Deserialize<'de> for FilterReason
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 FilterReason
impl RefUnwindSafe for FilterReason
impl Send for FilterReason
impl Sync for FilterReason
impl Unpin for FilterReason
impl UnsafeUnpin for FilterReason
impl UnwindSafe for FilterReason
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