pub enum ChangeReplicationSourceOptionValue {
String {
value: Literal,
meta: Meta,
},
Number {
value: Literal,
meta: Meta,
},
NullableString {
value: Option<Literal>,
meta: Meta,
},
User {
account: Option<AccountName>,
meta: Meta,
},
ServerIds {
ids: ThinVec<Literal>,
meta: Meta,
},
PrimaryKeyCheck {
check: RequirePrimaryKeyCheck,
meta: Meta,
},
AssignGtids {
kind: AssignGtidsKind,
uuid: Option<Literal>,
meta: Meta,
},
}Expand description
The value of a ChangeReplicationSourceOption — the measured argument shapes of
mysql:8.4.10’s source_def grammar.
Most options take a String or Number; the remaining
five carry the exotic shapes the grammar defines for specific options.
Variants§
String
A string-literal value (SOURCE_HOST = 'h', SOURCE_LOG_FILE = 'f'). The spelling
round-trips from the Literal span.
Number
A numeric-literal value (SOURCE_PORT = 3306, SOURCE_HEARTBEAT_PERIOD = 1.5,
the 0/1 boolean-ish flags). Integer and fractional spellings ride one shape;
the Literal classifies its own kind and round-trips from its span.
NullableString
SOURCE_TLS_CIPHERSUITES’s <string> | NULL value: Some for a string,
None for the bare NULL (source_tls_ciphersuites_def).
Fields
User
PRIVILEGE_CHECKS_USER’s <user> | NULL value: Some for a named account,
None for the bare NULL (privilege_check_def).
Fields
account: Option<AccountName>The account; None for NULL.
ServerIds
IGNORE_SERVER_IDS’s parenthesized server-id list (ignore_server_id_list). Empty
for the () reset form.
Fields
PrimaryKeyCheck
REQUIRE_TABLE_PRIMARY_KEY_CHECK’s ON | OFF | STREAM | GENERATE keyword value
(table_primary_key_check_def).
Fields
check: RequirePrimaryKeyCheckThe primary-key-check policy.
AssignGtids
Trait Implementations§
Source§impl Clone for ChangeReplicationSourceOptionValue
impl Clone for ChangeReplicationSourceOptionValue
Source§fn clone(&self) -> ChangeReplicationSourceOptionValue
fn clone(&self) -> ChangeReplicationSourceOptionValue
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'de> Deserialize<'de> for ChangeReplicationSourceOptionValue
impl<'de> Deserialize<'de> for ChangeReplicationSourceOptionValue
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>,
impl Eq for ChangeReplicationSourceOptionValue
Source§impl Render for ChangeReplicationSourceOptionValue
impl Render for ChangeReplicationSourceOptionValue
Source§fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreimpl StructuralPartialEq for ChangeReplicationSourceOptionValue
Auto Trait Implementations§
impl Freeze for ChangeReplicationSourceOptionValue
impl RefUnwindSafe for ChangeReplicationSourceOptionValue
impl Send for ChangeReplicationSourceOptionValue
impl Sync for ChangeReplicationSourceOptionValue
impl Unpin for ChangeReplicationSourceOptionValue
impl UnsafeUnpin for ChangeReplicationSourceOptionValue
impl UnwindSafe for ChangeReplicationSourceOptionValue
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> DynAstExt for T
impl<T> DynAstExt for T
Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&dyn Any for downcasting a node back to its concrete type.Source§fn dyn_clone(&self) -> Box<dyn DynAstExt>
fn dyn_clone(&self) -> Box<dyn DynAstExt>
Clone (whose
Self-returning signature cannot go through a vtable).Source§fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
fn dyn_eq(&self, other: &dyn DynAstExt) -> bool
PartialEq (whose &Self argument cannot go through a vtable). Equal
iff other holds the same concrete type and that type deems the values
equal; differently-typed nodes are never equal.