pub struct DropServer<'a> {
pub drop_span: Span,
pub server_span: Span,
pub if_exists: Option<Span>,
pub server: Identifier<'a>,
}
Expand description
Represent a drop server statement
let sql = "DROP SERVER myserver;";
let mut issues = Issues::new(sql);
let mut stmts = parse_statements(sql, &mut issues, &options);
let s: DropServer = match stmts.pop() {
Some(Statement::DropServer(s)) => s,
_ => panic!("We should get a drop server statement")
};
assert!(s.server.as_str() == "myserver");
Fields§
§drop_span: Span
Span of “DROP”
server_span: Span
Span of “SERVER”
if_exists: Option<Span>
Span of “IF EXISTS” if specified
server: Identifier<'a>
Server to drop
Trait Implementations§
Source§impl<'a> Clone for DropServer<'a>
impl<'a> Clone for DropServer<'a>
Source§fn clone(&self) -> DropServer<'a>
fn clone(&self) -> DropServer<'a>
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<'a> Debug for DropServer<'a>
impl<'a> Debug for DropServer<'a>
Auto Trait Implementations§
impl<'a> Freeze for DropServer<'a>
impl<'a> RefUnwindSafe for DropServer<'a>
impl<'a> Send for DropServer<'a>
impl<'a> Sync for DropServer<'a>
impl<'a> Unpin for DropServer<'a>
impl<'a> UnwindSafe for DropServer<'a>
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