pub enum SystemVariableScope {
Implicit,
Keyword(SystemVariableScopeKind),
AtAt,
AtAtScoped(SystemVariableScopeKind),
}Expand description
The scope qualifier of a MySQL system-variable assignment, capturing both which
scope and how it was spelled — a keyword prefix (GLOBAL x) or the @@ sigil
(@@global.x). Modelled as one enum so the mutually-exclusive keyword/@@ spellings
cannot both be present.
Variants§
Implicit
No scope prefix — a bare SET x = ... (server-implicit session scope).
Keyword(SystemVariableScopeKind)
A keyword prefix — SET GLOBAL x = ... / SESSION / LOCAL / PERSIST /
PERSIST_ONLY.
AtAt
The @@ sigil with no explicit scope — SET @@x = ....
AtAtScoped(SystemVariableScopeKind)
The @@ sigil with an explicit scope — SET @@global.x = ... / @@session. /
@@local. / @@persist. / @@persist_only..
Trait Implementations§
Source§impl Clone for SystemVariableScope
impl Clone for SystemVariableScope
Source§fn clone(&self) -> SystemVariableScope
fn clone(&self) -> SystemVariableScope
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 SystemVariableScope
Source§impl Debug for SystemVariableScope
impl Debug for SystemVariableScope
Source§impl<'de> Deserialize<'de> for SystemVariableScope
impl<'de> Deserialize<'de> for SystemVariableScope
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 SystemVariableScope
Source§impl Hash for SystemVariableScope
impl Hash for SystemVariableScope
Source§impl PartialEq for SystemVariableScope
impl PartialEq for SystemVariableScope
Source§impl Serialize for SystemVariableScope
impl Serialize for SystemVariableScope
impl StructuralPartialEq for SystemVariableScope
Auto Trait Implementations§
impl Freeze for SystemVariableScope
impl RefUnwindSafe for SystemVariableScope
impl Send for SystemVariableScope
impl Sync for SystemVariableScope
impl Unpin for SystemVariableScope
impl UnsafeUnpin for SystemVariableScope
impl UnwindSafe for SystemVariableScope
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