pub struct ExceptionHandler<'a> {
pub when_span: Span,
pub condition: Identifier<'a>,
pub then_span: Span,
pub statements: Vec<Statement<'a>>,
}Expand description
A single WHEN condition THEN stmts handler inside a PL/pgSQL EXCEPTION block
Fields§
§when_span: SpanSpan of “WHEN”
condition: Identifier<'a>Condition name (e.g. division_by_zero, OTHERS)
then_span: SpanSpan of “THEN”
statements: Vec<Statement<'a>>Handler body statements
Trait Implementations§
Source§impl<'a> Clone for ExceptionHandler<'a>
impl<'a> Clone for ExceptionHandler<'a>
Source§fn clone(&self) -> ExceptionHandler<'a>
fn clone(&self) -> ExceptionHandler<'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 ExceptionHandler<'a>
impl<'a> Debug for ExceptionHandler<'a>
Auto Trait Implementations§
impl<'a> Freeze for ExceptionHandler<'a>
impl<'a> RefUnwindSafe for ExceptionHandler<'a>
impl<'a> Send for ExceptionHandler<'a>
impl<'a> Sync for ExceptionHandler<'a>
impl<'a> Unpin for ExceptionHandler<'a>
impl<'a> UnsafeUnpin for ExceptionHandler<'a>
impl<'a> UnwindSafe for ExceptionHandler<'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