pub enum TriggerStep {
SetNew {
cells: Vec<TriggerCell>,
},
Insert {
table: String,
cells: Vec<TriggerCell>,
},
UpdateByPk {
table: String,
pk: TriggerValue,
cells: Vec<TriggerCell>,
},
DeleteByPk {
table: String,
pk: TriggerValue,
},
Select {
id: String,
table: String,
conditions: Vec<TriggerCondition>,
},
Foreach {
id: String,
steps: Vec<TriggerStep>,
},
DeleteWhere {
table: String,
conditions: Vec<TriggerCondition>,
},
UpdateWhere {
table: String,
conditions: Vec<TriggerCondition>,
cells: Vec<TriggerCell>,
},
Raise {
action: TriggerRaiseAction,
message: TriggerValue,
},
}Variants§
SetNew
Fields
§
cells: Vec<TriggerCell>Insert
UpdateByPk
DeleteByPk
Select
Foreach
DeleteWhere
UpdateWhere
Raise
Trait Implementations§
Source§impl Clone for TriggerStep
impl Clone for TriggerStep
Source§fn clone(&self) -> TriggerStep
fn clone(&self) -> TriggerStep
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 TriggerStep
impl Debug for TriggerStep
Source§impl<'de> Deserialize<'de> for TriggerStep
impl<'de> Deserialize<'de> for TriggerStep
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TriggerStep
impl PartialEq for TriggerStep
Source§fn eq(&self, other: &TriggerStep) -> bool
fn eq(&self, other: &TriggerStep) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TriggerStep
impl Serialize for TriggerStep
impl StructuralPartialEq for TriggerStep
Auto Trait Implementations§
impl Freeze for TriggerStep
impl RefUnwindSafe for TriggerStep
impl Send for TriggerStep
impl Sync for TriggerStep
impl Unpin for TriggerStep
impl UnsafeUnpin for TriggerStep
impl UnwindSafe for TriggerStep
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more