pub struct Procedure {
pub qualified_name: Vec<String>,
pub inputs: Vec<ProcArgSpec>,
pub outputs: Vec<ProcOutSpec>,
pub rows: Vec<ProcRow>,
}Expand description
A procedure registered with a ProcedureRegistry. The TCK
harness builds one per And there exists a procedure ... step by
collating the signature and the gherkin data table: each data row
contributes one entry to rows where the leading cells are the
input-column values (matched against call arguments) and the
trailing cells are the output-column values (projected by
YIELD).
Fields§
§qualified_name: Vec<String>§inputs: Vec<ProcArgSpec>§outputs: Vec<ProcOutSpec>§rows: Vec<ProcRow>Implementations§
Source§impl Procedure
impl Procedure
Sourcepub fn row_matches(&self, row: &ProcRow, args: &[Value]) -> bool
pub fn row_matches(&self, row: &ProcRow, args: &[Value]) -> bool
True when the call arguments match this row’s input columns.
Applied per row during execution — rows whose input cells
differ from the supplied arg values are filtered out.
Argument-type coercion (FLOAT accepts an integer, etc.) is
handled by the caller converting the call arg to the declared
type before comparing here.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Procedure
impl RefUnwindSafe for Procedure
impl Send for Procedure
impl Sync for Procedure
impl Unpin for Procedure
impl UnsafeUnpin for Procedure
impl UnwindSafe for Procedure
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