pub struct RulePresets;Expand description
规则集预设,提供常见场景的规则组合
Implementations§
Source§impl RulePresets
impl RulePresets
Sourcepub fn strict() -> RuleEngine
pub fn strict() -> RuleEngine
生产环境严格规则集
包含默认规则外加:
- 表数量上限 5
- JOIN 数量上限 3
- 要求 LIMIT
Sourcepub fn read_only() -> RuleEngine
pub fn read_only() -> RuleEngine
只读查询规则集
仅检查 SELECT 相关规则,不检查 DML。
Auto Trait Implementations§
impl Freeze for RulePresets
impl RefUnwindSafe for RulePresets
impl Send for RulePresets
impl Sync for RulePresets
impl Unpin for RulePresets
impl UnsafeUnpin for RulePresets
impl UnwindSafe for RulePresets
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