pub struct YamlRule {
pub id: String,
pub severity: Severity,
pub points: Option<u32>,
pub where_: String,
pub match: Option<YamlMatch>,
pub reason: String,
pub safer_alternative: Option<String>,
pub identity: Option<Requirement>,
}Fields§
§id: String§severity: Severity§points: Option<u32>§where_: String§match: Option<YamlMatch>§reason: String§safer_alternative: Option<String>§identity: Option<Requirement>Optional identity gate. When present AND the rule resolves to a
High-or-Critical severity, the engine emits a
Decision::IdentityVerification instead of Approval/Block.
The MCP middleman then handles the verification flow (cache
lookup, callback server, hold-then-surface).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for YamlRule
impl<'de> Deserialize<'de> for YamlRule
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 YamlRule
impl RefUnwindSafe for YamlRule
impl Send for YamlRule
impl Sync for YamlRule
impl Unpin for YamlRule
impl UnsafeUnpin for YamlRule
impl UnwindSafe for YamlRule
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