pub struct FirewallRule {
pub name: String,
pub pattern: String,
pub action: FirewallAction,
pub unless_pattern: Option<String>,
}Expand description
SQL 防火墙规则
Fields§
§name: String规则名称
pattern: String匹配模式(正则表达式)
action: FirewallAction规则动作
unless_pattern: Option<String>例外模式:若匹配则规则不触发(替代正则 lookahead,Rust regex 不支持 lookahead)
Trait Implementations§
Source§impl Clone for FirewallRule
impl Clone for FirewallRule
Source§fn clone(&self) -> FirewallRule
fn clone(&self) -> FirewallRule
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for FirewallRule
impl RefUnwindSafe for FirewallRule
impl Send for FirewallRule
impl Sync for FirewallRule
impl Unpin for FirewallRule
impl UnsafeUnpin for FirewallRule
impl UnwindSafe for FirewallRule
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