pub enum ValuePosition {
Literal {
value: Lit,
},
Column {
name: Box<str>,
},
}Expand description
A value position in a SimpleCondition — a column reference or a literal
(ValuePosition, ast.ts:267, minus the deprecated static parameter form).
Wire-tagged by "type".
Variants§
Literal
{ type: "literal", value } (ast.ts:279-282).
Column
{ type: "column", name } (ast.ts:269-277). Name stays a String — name
→ ColId lowering is the builder’s job (08 §5.5).
Trait Implementations§
Source§impl Clone for ValuePosition
impl Clone for ValuePosition
Source§fn clone(&self) -> ValuePosition
fn clone(&self) -> ValuePosition
Returns a duplicate of the value. Read more
1.0.0 · 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 ValuePosition
impl Debug for ValuePosition
Source§impl<'de> Deserialize<'de> for ValuePosition
impl<'de> Deserialize<'de> for ValuePosition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ValuePosition
impl PartialEq for ValuePosition
Source§impl Serialize for ValuePosition
impl Serialize for ValuePosition
impl StructuralPartialEq for ValuePosition
Auto Trait Implementations§
impl Freeze for ValuePosition
impl RefUnwindSafe for ValuePosition
impl Send for ValuePosition
impl Sync for ValuePosition
impl Unpin for ValuePosition
impl UnsafeUnpin for ValuePosition
impl UnwindSafe for ValuePosition
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