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§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§impl Serialize for TriggerStep
impl Serialize for TriggerStep
impl StructuralPartialEq for TriggerStep
Auto Trait Implementations§
impl Forget for TriggerStep
impl Freeze for TriggerStep
impl Move 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