pub struct MutationRuleInput {
pub resolver: RuleQueryResolver,
pub input: RuleQueryInput,
pub source_context: Vec<Expr>,
pub source_context_schema: Option<RowSchema>,
}Expand description
Raw event attributes and FROM/USING attributes cross separate private boundaries. NEW assignment expressions stay outside those boundaries and are copied at each reference.
Fields§
§resolver: RuleQueryResolver§input: RuleQueryInput§source_context: Vec<Expr>§source_context_schema: Option<RowSchema>Implementations§
Source§impl MutationRuleInput
impl MutationRuleInput
pub fn qualify_update_original( context: RuleAnalysisContext<'_>, statement: &mut UpdatePlan, binding: CatalogRoutineAnalysisContext<'_>, subject: &RoleReference, ) -> Result<bool, SQLError>
pub fn qualify_delete_original( context: RuleAnalysisContext<'_>, statement: &mut DeletePlan, binding: CatalogRoutineAnalysisContext<'_>, subject: &RoleReference, ) -> Result<bool, SQLError>
pub fn bind( context: RuleAnalysisContext<'_>, correlation: CorrelationContext<'_>, statement: RuleMutation<'_>, schemas: (&RowSchema, Option<&RowSchema>), references_event: bool, input_subject: &RoleReference, rule_subject: &RoleReference, ) -> Result<Self, SQLError>
pub fn finish(self, condition: Option<ExpressionPlan>) -> RuleQueryInput
Auto Trait Implementations§
impl !RefUnwindSafe for MutationRuleInput
impl !UnwindSafe for MutationRuleInput
impl Freeze for MutationRuleInput
impl Send for MutationRuleInput
impl Sync for MutationRuleInput
impl Unpin for MutationRuleInput
impl UnsafeUnpin for MutationRuleInput
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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