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 metadata of a policy, usable as a trait object. See
DrizzlePolicy for what each field means.
Required Methods§
Sourcefn for_clause(&self) -> Option<&'static str>
fn for_clause(&self) -> Option<&'static str>
The command the policy covers, if set.
Sourcefn with_check(&self) -> Option<&'static str>
fn with_check(&self) -> Option<&'static str>
WITH CHECK expression, as SQL text.
Trait Implementations§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".