Skip to main content

SQLPolicyInfo

Trait SQLPolicyInfo 

Source
pub trait SQLPolicyInfo:
    Any
    + Send
    + Sync {
    // Required methods
    fn table(&self) -> &'static TableRef;
    fn name(&self) -> &'static str;
    fn as_clause(&self) -> Option<&'static str>;
    fn for_clause(&self) -> Option<&'static str>;
    fn to(&self) -> &'static [&'static str];
    fn using(&self) -> Option<&'static str>;
    fn with_check(&self) -> Option<&'static str>;
}
Expand description

Runtime view of policy metadata for schema derivation.

Required Methods§

Source

fn table(&self) -> &'static TableRef

Source

fn name(&self) -> &'static str

Source

fn as_clause(&self) -> Option<&'static str>

Source

fn for_clause(&self) -> Option<&'static str>

Source

fn to(&self) -> &'static [&'static str]

Source

fn using(&self) -> Option<&'static str>

Source

fn with_check(&self) -> Option<&'static str>

Trait Implementations§

Source§

impl Debug for dyn SQLPolicyInfo

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: DrizzlePolicy> SQLPolicyInfo for T

Blanket: any DrizzlePolicy automatically satisfies SQLPolicyInfo.