pub struct DropStatement {
pub object_type: DropObjectType,
pub name: Identifier,
pub if_exists: bool,
pub span: Range<usize>,
}Expand description
Represents a DROP statement.
Fields§
§object_type: DropObjectTypeThe type of object to drop.
name: IdentifierThe name of the object.
if_exists: boolWhether to include IF EXISTS.
span: Range<usize>The span of the DROP statement.
Trait Implementations§
Source§impl AsDocument for DropStatement
Available on crate feature oak-pretty-print only.
impl AsDocument for DropStatement
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for DropStatement
impl Clone for DropStatement
Source§fn clone(&self) -> DropStatement
fn clone(&self) -> DropStatement
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 DropStatement
impl Debug for DropStatement
Source§impl<'de> Deserialize<'de> for DropStatement
impl<'de> Deserialize<'de> for DropStatement
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 Serialize for DropStatement
impl Serialize for DropStatement
Source§impl ToSource for DropStatement
impl ToSource for DropStatement
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for DropStatement
impl RefUnwindSafe for DropStatement
impl Send for DropStatement
impl Sync for DropStatement
impl Unpin for DropStatement
impl UnsafeUnpin for DropStatement
impl UnwindSafe for DropStatement
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