pub struct NoUnionRule;Expand description
禁止 UNION 规则
UNION 可能导致结果集不可预测与性能问题,部分场景需禁用。
Trait Implementations§
Source§impl Debug for NoUnionRule
impl Debug for NoUnionRule
Source§impl Default for NoUnionRule
impl Default for NoUnionRule
Source§fn default() -> NoUnionRule
fn default() -> NoUnionRule
Returns the “default value” for a type. Read more
Source§impl SqlRule for NoUnionRule
impl SqlRule for NoUnionRule
Source§fn severity(&self) -> RuleSeverity
fn severity(&self) -> RuleSeverity
规则的默认严重级别
Source§fn check(&self, ctx: &RuleContext) -> Option<RuleViolation>
fn check(&self, ctx: &RuleContext) -> Option<RuleViolation>
检查 SQL 上下文,返回
Some(violation) 表示违规,None 表示通过Auto Trait Implementations§
impl Freeze for NoUnionRule
impl RefUnwindSafe for NoUnionRule
impl Send for NoUnionRule
impl Sync for NoUnionRule
impl Unpin for NoUnionRule
impl UnsafeUnpin for NoUnionRule
impl UnwindSafe for NoUnionRule
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more