pub enum Predicate {
Cmp {
left: Expr,
op: CmpOp,
right: Expr,
},
All(Vec<Predicate>),
Any(Vec<Predicate>),
Not(Box<Predicate>),
Member {
value: Expr,
set: Vec<Literal>,
},
Present(String),
IsConstructed {
reference: String,
},
MemberRef {
value: Expr,
set: String,
},
}Expand description
Boolean predicates. all([]) is true; any([]) is false.
Variants§
Cmp
All(Vec<Predicate>)
Any(Vec<Predicate>)
Not(Box<Predicate>)
Member
Present(String)
True when the named input resolved (input:<name>).
IsConstructed
Registry 2: whether the referenced value was constructed (spec 036).
MemberRef
Registry rustev.exact/2: true when the value is a member of the
list, or the keys of the map, set references (spec 032, 3.7.2).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Predicate
impl<'de> Deserialize<'de> for Predicate
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
impl Eq for Predicate
Source§impl JsonSchema for Predicate
impl JsonSchema for Predicate
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for Predicate
Auto Trait Implementations§
impl Freeze for Predicate
impl RefUnwindSafe for Predicate
impl Send for Predicate
impl Sync for Predicate
impl Unpin for Predicate
impl UnsafeUnpin for Predicate
impl UnwindSafe for Predicate
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