pub trait RuleStatements<S: Clone + 'static> {
// Required methods
fn read_control(&self) -> Result<StorageReadControl, SQLError>;
fn execute(
&self,
action: RuleAction,
params: &[SQLParam],
inherited_ctes: Option<&CteScope<S>>,
privilege_subject: &RoleReference,
consumer: Option<Rc<dyn QueryRowConsumer + '_>>,
) -> Result<StatementOutput, SQLError>;
}Required Methods§
fn read_control(&self) -> Result<StorageReadControl, SQLError>
fn execute( &self, action: RuleAction, params: &[SQLParam], inherited_ctes: Option<&CteScope<S>>, privilege_subject: &RoleReference, consumer: Option<Rc<dyn QueryRowConsumer + '_>>, ) -> Result<StatementOutput, SQLError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".