pub struct CatalogTrigger {
pub name: String,
pub timing: TriggerTiming,
pub events: Vec<TriggerEvent>,
pub update_columns: Vec<String>,
pub for_each_row: bool,
pub function: String,
pub arguments: Vec<String>,
pub when: Option<String>,
pub definition: String,
}Fields§
§name: String§timing: TriggerTiming§events: Vec<TriggerEvent>§update_columns: Vec<String>§for_each_row: bool§function: String§arguments: Vec<String>§when: Option<String>§definition: StringImplementations§
Source§impl CatalogTrigger
impl CatalogTrigger
Sourcepub fn matches(
&self,
function: &str,
timing: TriggerTiming,
events: &[TriggerEvent],
for_each_row: bool,
) -> bool
pub fn matches( &self, function: &str, timing: TriggerTiming, events: &[TriggerEvent], for_each_row: bool, ) -> bool
events matches when it is a subset of this trigger’s events.
Trait Implementations§
Source§impl Clone for CatalogTrigger
impl Clone for CatalogTrigger
Source§impl Debug for CatalogTrigger
impl Debug for CatalogTrigger
impl Eq for CatalogTrigger
Source§impl PartialEq for CatalogTrigger
impl PartialEq for CatalogTrigger
impl StructuralPartialEq for CatalogTrigger
Auto Trait Implementations§
impl Forget for CatalogTrigger
impl Freeze for CatalogTriggerwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TriggerEvent>: Freeze,
PhantomData<String>: Freeze,
impl Move for CatalogTrigger
impl RefUnwindSafe for CatalogTrigger
impl Send for CatalogTriggerwhere
RawVecInner: Send,
impl Sync for CatalogTriggerwhere
RawVecInner: Sync,
impl Unpin for CatalogTrigger
impl UnsafeUnpin for CatalogTriggerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TriggerEvent>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CatalogTriggerwhere
RawVecInner: 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
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§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.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