pub struct DropEvent<'a> {
pub drop_span: Span,
pub event_span: Span,
pub if_exists: Option<Span>,
pub event: Identifier<'a>,
}
Expand description
Represent a drop event statement
let sql = "DROP EVENT myevent;";
let mut stmts = parse_statements(sql, &mut issues, &options);
let s: DropEvent = match stmts.pop() {
Some(Statement::DropEvent(s)) => s,
_ => panic!("We should get a drop event statement")
};
assert!(s.event.as_str() == "myevent");
Fields
drop_span: Span
Span of “DROP”
event_span: Span
Span of “EVENT”
if_exists: Option<Span>
Span of “IF EXISTS” if specified
event: Identifier<'a>
Event to drop
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for DropEvent<'a>
impl<'a> Send for DropEvent<'a>
impl<'a> Sync for DropEvent<'a>
impl<'a> Unpin for DropEvent<'a>
impl<'a> UnwindSafe for DropEvent<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more