pub enum SetAssignment {
To,
Equals,
ColonEquals,
}Expand description
Surface spelling of the SET <name> {= | TO} <value> assignment separator
(SessionStatement::Set).
= and TO are exact synonyms in PostgreSQL’s generic SET; the canonical AST
keeps one shape and this tag records which the source wrote so a source-fidelity
render replays it. A fidelity tag, not a validity one — a target re-spell and the
redacted fingerprint normalize to the canonical TO.
Variants§
To
The TO keyword (the canonical spelling).
Equals
The = operator.
ColonEquals
The := operator — MySQL’s SET_VAR assignment separator, an exact synonym of
= in SET (and in @v := expr). Never appears in the PostgreSQL generic SET,
which has no :=; a source-fidelity render replays it, a target re-spell and the
redacted fingerprint normalize it to = (MySQL has no TO spelling here).
Trait Implementations§
Source§impl Clone for SetAssignment
impl Clone for SetAssignment
Source§fn clone(&self) -> SetAssignment
fn clone(&self) -> SetAssignment
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 moreimpl Copy for SetAssignment
Source§impl Debug for SetAssignment
impl Debug for SetAssignment
Source§impl<'de> Deserialize<'de> for SetAssignment
impl<'de> Deserialize<'de> for SetAssignment
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
impl Eq for SetAssignment
Source§impl Hash for SetAssignment
impl Hash for SetAssignment
Source§impl PartialEq for SetAssignment
impl PartialEq for SetAssignment
Source§impl Serialize for SetAssignment
impl Serialize for SetAssignment
impl StructuralPartialEq for SetAssignment
Auto Trait Implementations§
impl Freeze for SetAssignment
impl RefUnwindSafe for SetAssignment
impl Send for SetAssignment
impl Sync for SetAssignment
impl Unpin for SetAssignment
impl UnsafeUnpin for SetAssignment
impl UnwindSafe for SetAssignment
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