pub struct SignalStatement<X: Extension = NoExt> {
pub condition: Option<ConditionValue>,
pub set_items: ThinVec<SignalItem<X>>,
pub meta: Meta,
}Expand description
A SIGNAL/RESIGNAL statement: raise (or re-raise) a condition, optionally amending
the diagnostics area with a SET item list.
One payload for both keywords (the enclosing Statement::Signal/Statement::Resignal
records which): they share the grammar bar one difference the parser enforces — SIGNAL
requires a condition, RESIGNAL leaves it optional (re-raise the
current condition, so a bare RESIGNAL and RESIGNAL SET … are both legal).
Fields§
§condition: Option<ConditionValue>The signalled condition — a SQLSTATE '…' or a declared condition name. Mandatory
for SIGNAL (parser-enforced), optional for RESIGNAL.
set_items: ThinVec<SignalItem<X>>The SET <item> = <expr> [, …] amendments; empty when no SET clause was written.
meta: MetaSource location and node identity.
Trait Implementations§
Source§impl<X: Clone + Extension> Clone for SignalStatement<X>
impl<X: Clone + Extension> Clone for SignalStatement<X>
Source§fn clone(&self) -> SignalStatement<X>
fn clone(&self) -> SignalStatement<X>
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<'de, X> Deserialize<'de> for SignalStatement<X>where
X: Deserialize<'de> + Extension,
impl<'de, X> Deserialize<'de> for SignalStatement<X>where
X: Deserialize<'de> + Extension,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<X: Eq + Extension> Eq for SignalStatement<X>
Source§impl<X> Serialize for SignalStatement<X>
impl<X> Serialize for SignalStatement<X>
Source§impl<X: Extension> Spanned for SignalStatement<X>
impl<X: Extension> Spanned for SignalStatement<X>
impl<X: PartialEq + Extension> StructuralPartialEq for SignalStatement<X>
Auto Trait Implementations§
impl<X> Freeze for SignalStatement<X>
impl<X> RefUnwindSafe for SignalStatement<X>where
X: RefUnwindSafe,
impl<X> Send for SignalStatement<X>where
X: Send,
impl<X> Sync for SignalStatement<X>where
X: Sync,
impl<X> Unpin for SignalStatement<X>where
X: Unpin,
impl<X> UnsafeUnpin for SignalStatement<X>
impl<X> UnwindSafe for SignalStatement<X>where
X: UnwindSafe,
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