pub struct RequireWhereInDeleteRule;Expand description
DELETE 必须包含 WHERE 子句规则
无 WHERE 的 DELETE 会清空全表,属高危操作。
Trait Implementations§
Source§impl Debug for RequireWhereInDeleteRule
impl Debug for RequireWhereInDeleteRule
Source§impl Default for RequireWhereInDeleteRule
impl Default for RequireWhereInDeleteRule
Source§fn default() -> RequireWhereInDeleteRule
fn default() -> RequireWhereInDeleteRule
Returns the “default value” for a type. Read more
Source§impl SqlRule for RequireWhereInDeleteRule
impl SqlRule for RequireWhereInDeleteRule
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 RequireWhereInDeleteRule
impl RefUnwindSafe for RequireWhereInDeleteRule
impl Send for RequireWhereInDeleteRule
impl Sync for RequireWhereInDeleteRule
impl Unpin for RequireWhereInDeleteRule
impl UnsafeUnpin for RequireWhereInDeleteRule
impl UnwindSafe for RequireWhereInDeleteRule
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