Enum sql_parser::ast::defs::value::Value [−][src]
pub enum Value {
Number(String),
String(String),
HexString(String),
Boolean(bool),
Interval(IntervalValue),
Array(Vec<Value>),
Null,
}
Expand description
Primitive SQL values.
Variants
Number(String)
Tuple Fields
0: String
Numeric value.
String(String)
Tuple Fields
0: String
String value.
HexString(String)
Tuple Fields
0: String
Hex string value.
Boolean(bool)
Tuple Fields
0: bool
Boolean value.
Interval(IntervalValue)
Tuple Fields
INTERVAL literals, roughly in the following format:
INTERVAL '<value>' <leading_field> [ TO <last_field>
[ (<fractional_seconds_precision>) ] ]
e.g. INTERVAL '123:45.678' MINUTE TO SECOND(2)
.
Array(Vec<Value>)
Array of Values.
Null
NULL
value.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Value
impl UnwindSafe for Value
Blanket Implementations
Mutably borrows from an owned value. Read more
Formats an object with the “alternative” format ({:#}
) and returns it.
Compare self to key
and return true
if they are equal.
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more