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§
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>
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<T: DrizzlePolicy> SQLPolicyInfo for T
Blanket: any DrizzlePolicy automatically satisfies SQLPolicyInfo.