pub struct TopLevel {
pub statement: &'static str,
pub context: String,
}Expand description
A statement that cannot run inside a transaction block or in a function, as PreventInTransactionBlock checks it.
Fields§
§statement: &'static strThe name of the statement in the error, such as REINDEX TABLE.
context: StringThe context of the error, such as the partitioned table of REINDEX.
Trait Implementations§
impl Eq for TopLevel
impl StructuralPartialEq for TopLevel
Auto Trait Implementations§
impl Freeze for TopLevel
impl RefUnwindSafe for TopLevel
impl Send for TopLevel
impl Sync for TopLevel
impl Unpin for TopLevel
impl UnsafeUnpin for TopLevel
impl UnwindSafe for TopLevel
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