pub enum IndexLockAlgorithmOption {
Algorithm {
equals: bool,
value: IndexAlgorithm,
},
Lock {
equals: bool,
value: IndexLock,
},
}Expand description
One entry of a DROP INDEX … ON … (or online ALTER TABLE) opt_index_lock_and_algorithm
tail — an ALGORITHM or a LOCK execution hint. Each records whether the optional =
(opt_equal) was written so the surface form round-trips verbatim.
Variants§
Algorithm
ALGORITHM [=] {DEFAULT | INPLACE | INSTANT | COPY}.
Fields
§
value: IndexAlgorithmThe chosen algorithm.
Lock
LOCK [=] {DEFAULT | NONE | SHARED | EXCLUSIVE}.
Trait Implementations§
Source§impl Clone for IndexLockAlgorithmOption
impl Clone for IndexLockAlgorithmOption
Source§fn clone(&self) -> IndexLockAlgorithmOption
fn clone(&self) -> IndexLockAlgorithmOption
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 IndexLockAlgorithmOption
Source§impl Debug for IndexLockAlgorithmOption
impl Debug for IndexLockAlgorithmOption
Source§impl<'de> Deserialize<'de> for IndexLockAlgorithmOption
impl<'de> Deserialize<'de> for IndexLockAlgorithmOption
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 IndexLockAlgorithmOption
Source§impl Hash for IndexLockAlgorithmOption
impl Hash for IndexLockAlgorithmOption
Source§impl PartialEq for IndexLockAlgorithmOption
impl PartialEq for IndexLockAlgorithmOption
Source§impl Render for IndexLockAlgorithmOption
impl Render for IndexLockAlgorithmOption
Source§fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
fn render(&self, _ctx: &RenderCtx<'_>, f: &mut Formatter<'_>) -> Result
Return the render for this value.
Source§fn operand_binding_power(&self) -> Option<BindingPower>
fn operand_binding_power(&self) -> Option<BindingPower>
The binding power this node contributes when it appears as an operand, or
None (the default) for a self-delimiting node — an atom, call, or
constructor — that never needs parentheses. Read moreSource§impl Serialize for IndexLockAlgorithmOption
impl Serialize for IndexLockAlgorithmOption
impl StructuralPartialEq for IndexLockAlgorithmOption
Auto Trait Implementations§
impl Freeze for IndexLockAlgorithmOption
impl RefUnwindSafe for IndexLockAlgorithmOption
impl Send for IndexLockAlgorithmOption
impl Sync for IndexLockAlgorithmOption
impl Unpin for IndexLockAlgorithmOption
impl UnsafeUnpin for IndexLockAlgorithmOption
impl UnwindSafe for IndexLockAlgorithmOption
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