pub struct ExceptionHandler {
pub conditions: Vec<String>,
pub body: Vec<PlPgSqlStmt>,
}Expand description
v7.37.20 (20.10) — one WHEN <cond> [OR <cond>...] THEN <body>
arm inside an EXCEPTION block.
Fields§
§conditions: Vec<String>Condition names (OTHERS, unique_violation, etc.). Multiple
conditions joined by OR share one handler body.
body: Vec<PlPgSqlStmt>Statements to run when a matching exception is caught.
Trait Implementations§
Source§impl Clone for ExceptionHandler
impl Clone for ExceptionHandler
Source§fn clone(&self) -> ExceptionHandler
fn clone(&self) -> ExceptionHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExceptionHandler
impl Debug for ExceptionHandler
Source§impl PartialEq for ExceptionHandler
impl PartialEq for ExceptionHandler
impl StructuralPartialEq for ExceptionHandler
Auto Trait Implementations§
impl Freeze for ExceptionHandler
impl RefUnwindSafe for ExceptionHandler
impl Send for ExceptionHandler
impl Sync for ExceptionHandler
impl Unpin for ExceptionHandler
impl UnsafeUnpin for ExceptionHandler
impl UnwindSafe for ExceptionHandler
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