Skip to main content

RuleSecurity

Trait RuleSecurity 

Source
pub trait RuleSecurity {
    // Required method
    fn privilege_subject(&self, table: &str) -> Result<RoleReference, SQLError>;

    // Provided method
    fn privilege_subject_with_control(
        &self,
        table: &str,
        control: &ProductionControl<'_>,
    ) -> Result<Produced<RoleReference>, SQLError> { ... }
}

Required Methods§

Provided Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§