pub struct DropTableStatement {
pub if_temporary: bool,
pub if_exists: bool,
pub tables: Vec<Table>,
pub if_restrict: bool,
pub if_cascade: bool,
}
Expand description
parse DROP [TEMPORARY] TABLE [IF EXISTS] tbl_name [, tbl_name] ... [RESTRICT | CASCADE]
Fields§
§if_temporary: bool
§if_exists: bool
§tables: Vec<Table>
A name of a table, view, custom type, etc., possibly multipart, i.e. db.schema.obj
if_restrict: bool
§if_cascade: bool
Implementations§
Source§impl DropTableStatement
impl DropTableStatement
pub fn parse(i: &str) -> IResult<&str, DropTableStatement, ParseSQLError<&str>>
Trait Implementations§
Source§impl Clone for DropTableStatement
impl Clone for DropTableStatement
Source§fn clone(&self) -> DropTableStatement
fn clone(&self) -> DropTableStatement
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DropTableStatement
impl Debug for DropTableStatement
Source§impl Default for DropTableStatement
impl Default for DropTableStatement
Source§fn default() -> DropTableStatement
fn default() -> DropTableStatement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DropTableStatement
impl<'de> Deserialize<'de> for DropTableStatement
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
Source§impl Display for DropTableStatement
impl Display for DropTableStatement
Source§impl Hash for DropTableStatement
impl Hash for DropTableStatement
Source§impl PartialEq for DropTableStatement
impl PartialEq for DropTableStatement
Source§impl Serialize for DropTableStatement
impl Serialize for DropTableStatement
impl Eq for DropTableStatement
impl StructuralPartialEq for DropTableStatement
Auto Trait Implementations§
impl Freeze for DropTableStatement
impl RefUnwindSafe for DropTableStatement
impl Send for DropTableStatement
impl Sync for DropTableStatement
impl Unpin for DropTableStatement
impl UnwindSafe for DropTableStatement
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