pub struct DropViewStatement {
pub if_exists: bool,
pub views: Vec<String>,
pub if_restrict: bool,
pub if_cascade: bool,
}
Expand description
parse DROP VIEW [IF EXISTS] view_name [, view_name] ... [RESTRICT | CASCADE]
Fields§
§if_exists: bool
§views: Vec<String>
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 DropViewStatement
impl DropViewStatement
Sourcepub fn parse(i: &str) -> IResult<&str, DropViewStatement, ParseSQLError<&str>>
pub fn parse(i: &str) -> IResult<&str, DropViewStatement, ParseSQLError<&str>>
DROP VIEW [IF EXISTS] view_name [, view_name] … [RESTRICT | CASCADE]
Trait Implementations§
Source§impl Clone for DropViewStatement
impl Clone for DropViewStatement
Source§fn clone(&self) -> DropViewStatement
fn clone(&self) -> DropViewStatement
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 DropViewStatement
impl Debug for DropViewStatement
Source§impl Default for DropViewStatement
impl Default for DropViewStatement
Source§fn default() -> DropViewStatement
fn default() -> DropViewStatement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DropViewStatement
impl<'de> Deserialize<'de> for DropViewStatement
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 DropViewStatement
impl Display for DropViewStatement
Source§impl Hash for DropViewStatement
impl Hash for DropViewStatement
Source§impl PartialEq for DropViewStatement
impl PartialEq for DropViewStatement
Source§impl Serialize for DropViewStatement
impl Serialize for DropViewStatement
impl Eq for DropViewStatement
impl StructuralPartialEq for DropViewStatement
Auto Trait Implementations§
impl Freeze for DropViewStatement
impl RefUnwindSafe for DropViewStatement
impl Send for DropViewStatement
impl Sync for DropViewStatement
impl Unpin for DropViewStatement
impl UnwindSafe for DropViewStatement
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