pub struct SelectRequest {
pub select: Value,
pub templates: Value,
pub expect: Option<Value>,
}Expand description
plan / apply / execute with a select — the selector, the
templates (the call’s effects) and the optional bound, as given — or,
since 3.2, a selector-less call whose effects carry sugar (select is
null: the effects are desugared and their -> / { oqx } slots
evaluated in their own targets’ row scopes).
Fields§
§select: Value§templates: Value§expect: Option<Value>Implementations§
Source§impl SelectRequest
impl SelectRequest
Sourcepub fn from_args(args: &Json) -> Result<Option<Self>>
pub fn from_args(args: &Json) -> Result<Option<Self>>
Read a tool’s or a fixture step’s arguments: None when the call
names neither select nor expect and its effects carry no sugar
(the plain effects path, untouched); expect without select is
refused as the reference’s planner refuses it. Nothing else is
checked here — compile does, in the reference’s order.
Sourcepub fn has_selector(&self) -> bool
pub fn has_selector(&self) -> bool
The call names a selector (else it is the selector-less sugar path).
Sourcepub fn select_str(&self) -> &str
pub fn select_str(&self) -> &str
The selector as given, when it is a string.
Trait Implementations§
Source§impl Clone for SelectRequest
impl Clone for SelectRequest
Source§impl Debug for SelectRequest
impl Debug for SelectRequest
Source§impl PartialEq for SelectRequest
impl PartialEq for SelectRequest
impl StructuralPartialEq for SelectRequest
Auto Trait Implementations§
impl Freeze for SelectRequest
impl RefUnwindSafe for SelectRequest
impl Send for SelectRequest
impl Sync for SelectRequest
impl Unpin for SelectRequest
impl UnsafeUnpin for SelectRequest
impl UnwindSafe for SelectRequest
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