pub enum PredicateIR {
ElementState {
selector: ElementSelectorIR,
state: ElementState,
},
ElementText {
selector: ElementSelectorIR,
match: TextMatchIR,
},
Expr {
expr: Expr,
},
Visual {
prompt: String,
region: Option<RectIR>,
},
}Expand description
The four predicate types (closed, spine A.4), internally tagged type.
Note on closedness: #[schemars(deny_unknown_fields)] closes each
variant object in the generated schema (baseline parity); serde’s
internally-tagged deserialization is lenient about unknown fields at
runtime (a documented serde limitation) — the schema stays authoritative.
Variants§
ElementState
Element state check; values equal DeviceRail
WaitForElementCondition verbatim.
ElementText
Element text check.
Expr
Pure expression assertion over outputs (consumes no observation
channel; verifyVia is empty).
Visual
Visual assertion (vision-only; the prompt lives here, not in
visionPrompt).
Trait Implementations§
Source§impl Clone for PredicateIR
impl Clone for PredicateIR
Source§fn clone(&self) -> PredicateIR
fn clone(&self) -> PredicateIR
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PredicateIR
impl Debug for PredicateIR
Source§impl<'de> Deserialize<'de> for PredicateIR
impl<'de> Deserialize<'de> for PredicateIR
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
Source§impl JsonSchema for PredicateIR
impl JsonSchema for PredicateIR
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 moreSource§impl PartialEq for PredicateIR
impl PartialEq for PredicateIR
Source§impl Serialize for PredicateIR
impl Serialize for PredicateIR
impl StructuralPartialEq for PredicateIR
Auto Trait Implementations§
impl Freeze for PredicateIR
impl RefUnwindSafe for PredicateIR
impl Send for PredicateIR
impl Sync for PredicateIR
impl Unpin for PredicateIR
impl UnsafeUnpin for PredicateIR
impl UnwindSafe for PredicateIR
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