pub struct GateRule {
pub name: String,
pub pointer: String,
pub op: String,
pub value: Option<Value>,
pub values: Option<Vec<Value>>,
pub negate: bool,
pub level: Option<String>,
pub message: Option<String>,
}Expand description
A single gate policy rule (for inline TOML configuration).
Fields§
§name: StringHuman-readable name for the rule.
pointer: StringJSON Pointer to the value to check (RFC 6901).
op: StringComparison operator.
value: Option<Value>Single value for comparison.
values: Option<Vec<Value>>Multiple values for “in” operator.
negate: boolNegate the result.
level: Option<String>Rule severity level: “error” or “warn”.
message: Option<String>Custom failure message.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GateRule
impl<'de> Deserialize<'de> for GateRule
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 GateRule
impl RefUnwindSafe for GateRule
impl Send for GateRule
impl Sync for GateRule
impl Unpin for GateRule
impl UnsafeUnpin for GateRule
impl UnwindSafe for GateRule
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