pub enum SetValue {
String(String),
Ident(String),
Number(String),
Default,
Null,
}Expand description
v7.12.1 — payload of a SET right-hand side. PG syntax accepts
a string literal, an identifier (often a config name), an
integer/float, or the bare DEFAULT keyword.
Variants§
String(String)
Ident(String)
Number(String)
Default
Null
v7.40.11 — MySQL only. SET character_set_results = NULL is the
second statement Connector/J sends on every connection, and it
means “send results in the column’s own charset, do not
transcode”. PostgreSQL 18.6 answers syntax error at or near "NULL" for the same shape (measured), so the parser produces
this variant only for a MySQL-dialect session.
Trait Implementations§
impl StructuralPartialEq for SetValue
Auto Trait Implementations§
impl Freeze for SetValue
impl RefUnwindSafe for SetValue
impl Send for SetValue
impl Sync for SetValue
impl Unpin for SetValue
impl UnsafeUnpin for SetValue
impl UnwindSafe for SetValue
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