pub struct OtherwiseNode {
pub childs: Vec<NodeType>,
}
Expand description
Represents an otherwise
node in py_sql.
It’s used within a choose
block to provide a default SQL block to execute if none of the when
conditions are met.
It can also be represented by _
.
§Example
PySQL syntax (inside a choose
block):
choose:
when test="type == 'A'":
sql_block_A
otherwise: // or _:
sql_block_default
Fields§
§childs: Vec<NodeType>
Trait Implementations§
Source§impl Clone for OtherwiseNode
impl Clone for OtherwiseNode
Source§fn clone(&self) -> OtherwiseNode
fn clone(&self) -> OtherwiseNode
Returns a copy 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 Debug for OtherwiseNode
impl Debug for OtherwiseNode
Source§impl DefaultName for OtherwiseNode
impl DefaultName for OtherwiseNode
fn default_name() -> &'static str
Source§impl PartialEq for OtherwiseNode
impl PartialEq for OtherwiseNode
impl Eq for OtherwiseNode
impl StructuralPartialEq for OtherwiseNode
Auto Trait Implementations§
impl Freeze for OtherwiseNode
impl RefUnwindSafe for OtherwiseNode
impl Send for OtherwiseNode
impl Sync for OtherwiseNode
impl Unpin for OtherwiseNode
impl UnwindSafe for OtherwiseNode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.