pub enum SetValue {
Literal(String),
Default,
}Expand description
Value on the right-hand side of a SET parameter (= | TO) ....
Literals are canonicalised by the lexer: unquoted keywords and
single-quoted strings are lowercased (so 'Off' and off both
arrive as "off"), and numeric literals preserve their original
digits. Double-quoted identifiers are never accepted as values.
Variants§
Literal(String)
A concrete literal value. Pass this to crate::sql::as_boolean
to interpret it as a PostgreSQL boolean.
Default
SET parameter (= | TO) DEFAULT — reset to the compiled-in
default. This is syntactically distinct from a literal because
the caller often needs to resolve “default” against the GUC’s
compiled default.
Trait Implementations§
impl Eq for SetValue
impl StructuralPartialEq for SetValue
Auto Trait Implementations§
impl Forget for SetValue
impl Freeze for SetValue
impl Move 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.