pub enum ShowCreateKind {
Table,
View,
Database {
schema: bool,
},
Event,
Procedure,
Function,
Trigger,
}Expand description
Which object kind a ShowTarget::Create recreates: TABLE, VIEW, DATABASE,
EVENT, PROCEDURE, FUNCTION, or TRIGGER (MySQL SHOW CREATE <kind> <name>).
A surface tag (no meta, like ShowRoutineKind): the keyword’s span is subsumed by
the enclosing ShowStatement. USER is absent — its operand is a user specification,
not an ObjectName, so SHOW CREATE USER rides its own
ShowTarget::CreateUser variant over the shared AccountName grammar.
Variants§
Table
SHOW CREATE TABLE <tbl>.
View
SHOW CREATE VIEW <view>.
Database
SHOW CREATE {DATABASE | SCHEMA} [IF NOT EXISTS] <db>.
Event
SHOW CREATE EVENT <event>.
Procedure
SHOW CREATE PROCEDURE <proc>.
Function
SHOW CREATE FUNCTION <func>.
Trigger
SHOW CREATE TRIGGER <trigger>.
Trait Implementations§
Source§impl Clone for ShowCreateKind
impl Clone for ShowCreateKind
Source§fn clone(&self) -> ShowCreateKind
fn clone(&self) -> ShowCreateKind
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 ShowCreateKind
Source§impl Debug for ShowCreateKind
impl Debug for ShowCreateKind
Source§impl<'de> Deserialize<'de> for ShowCreateKind
impl<'de> Deserialize<'de> for ShowCreateKind
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 ShowCreateKind
Source§impl Hash for ShowCreateKind
impl Hash for ShowCreateKind
Source§impl PartialEq for ShowCreateKind
impl PartialEq for ShowCreateKind
Source§impl Serialize for ShowCreateKind
impl Serialize for ShowCreateKind
impl StructuralPartialEq for ShowCreateKind
Auto Trait Implementations§
impl Freeze for ShowCreateKind
impl RefUnwindSafe for ShowCreateKind
impl Send for ShowCreateKind
impl Sync for ShowCreateKind
impl Unpin for ShowCreateKind
impl UnsafeUnpin for ShowCreateKind
impl UnwindSafe for ShowCreateKind
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