pub struct RelateStmt {
pub only: bool,
pub from: Option<Spanned<Expr>>,
pub edge: Option<Spanned<Expr>>,
pub to: Option<Spanned<Expr>>,
pub data: Option<DataClause>,
pub ret: Option<Spanned<ReturnMode>>,
}Expand description
RELATE from->edge->to — three explicitly spanned positions, because
edge-endpoint diagnostics will point at each independently.
Fields§
§only: boolRELATE ONLY ... — single-object result, not an array.
from: Option<Spanned<Expr>>The from endpoint (the edge’s in).
edge: Option<Spanned<Expr>>The edge table or record being created.
to: Option<Spanned<Expr>>The to endpoint (the edge’s out).
data: Option<DataClause>The payload clause (SET/CONTENT/…), if any.
ret: Option<Spanned<ReturnMode>>RETURN mode, if specified.
Trait Implementations§
Source§impl Clone for RelateStmt
impl Clone for RelateStmt
Source§fn clone(&self) -> RelateStmt
fn clone(&self) -> RelateStmt
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 RelateStmt
impl Debug for RelateStmt
Source§impl PartialEq for RelateStmt
impl PartialEq for RelateStmt
impl StructuralPartialEq for RelateStmt
Auto Trait Implementations§
impl Freeze for RelateStmt
impl RefUnwindSafe for RelateStmt
impl Send for RelateStmt
impl Sync for RelateStmt
impl Unpin for RelateStmt
impl UnsafeUnpin for RelateStmt
impl UnwindSafe for RelateStmt
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