pub struct TerminalStmt {
pub kind: TerminalKind,
pub name: String,
pub from: Option<String>,
pub fields: Vec<FieldAssign>,
pub scalar: Option<FieldValue>,
pub span: SourceSpan,
}Fields§
§kind: TerminalKind§name: String§from: Option<String>complete <T> from <binding>: a bounded-type projection egress — the payload
is the source binding projected to T’s fields (the shorthand copies), the
dual of record <T> from <binding>. None for the ordinary explicit-field
form. Only meaningful for Complete.
fields: Vec<FieldAssign>§scalar: Option<FieldValue>A bare scalar payload: complete result 0.9 / fail error "reason". Set
when the terminal is written without a { … } block; mutually exclusive
with fields (which is empty) and from (a projection needs a block).
Validated against a scalar (number/string/bool) output/failure
contract. None for the ordinary field-block form.
span: SourceSpanTrait Implementations§
Source§impl Clone for TerminalStmt
impl Clone for TerminalStmt
Source§fn clone(&self) -> TerminalStmt
fn clone(&self) -> TerminalStmt
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 TerminalStmt
impl Debug for TerminalStmt
impl Eq for TerminalStmt
Source§impl PartialEq for TerminalStmt
impl PartialEq for TerminalStmt
impl StructuralPartialEq for TerminalStmt
Auto Trait Implementations§
impl Freeze for TerminalStmt
impl RefUnwindSafe for TerminalStmt
impl Send for TerminalStmt
impl Sync for TerminalStmt
impl Unpin for TerminalStmt
impl UnsafeUnpin for TerminalStmt
impl UnwindSafe for TerminalStmt
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