pub enum PointEntry {
Inline(UpsertPoint),
Param(String, Option<Box<Span>>),
PositionalParam(usize, Option<Box<Span>>),
}Expand description
One entry of an UPSERT INTO … VALUES list: either an inline point
object or a whole-point placeholder (:name / ?) bound later to a
point dict (or a list of point dicts, splicing several points).
untagged keeps the JSON shape of inline points identical to before,
so existing AST snapshots are unaffected.
Variants§
Inline(UpsertPoint)
Inline {id: …, …} point object.
Param(String, Option<Box<Span>>)
Named whole-point placeholder (:name).
PositionalParam(usize, Option<Box<Span>>)
Positional whole-point placeholder (?).
Implementations§
Source§impl PointEntry
impl PointEntry
Sourcepub fn as_inline(&self) -> Option<&UpsertPoint>
pub fn as_inline(&self) -> Option<&UpsertPoint>
Borrow the inline point, if this entry is one (VALUES {…} rows
always are; placeholders become inline once bound).
Trait Implementations§
Source§impl Clone for PointEntry
impl Clone for PointEntry
Source§fn clone(&self) -> PointEntry
fn clone(&self) -> PointEntry
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 PointEntry
impl Debug for PointEntry
Source§impl PartialEq for PointEntry
impl PartialEq for PointEntry
impl StructuralPartialEq for PointEntry
Auto Trait Implementations§
impl Freeze for PointEntry
impl RefUnwindSafe for PointEntry
impl Send for PointEntry
impl Sync for PointEntry
impl Unpin for PointEntry
impl UnsafeUnpin for PointEntry
impl UnwindSafe for PointEntry
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