Struct sn0int::autonoscope::RuleSet
source · pub struct RuleSet { /* private fields */ }
Implementations§
source§impl RuleSet
impl RuleSet
pub fn domains(&self) -> &[Rule<DomainRule>]
pub fn ips(&self) -> &[Rule<IpRule>]
pub fn urls(&self) -> &[Rule<UrlRule>]
pub fn load(db: &DatabaseSock) -> Result<Self>
pub fn add_rule( &mut self, db: &DatabaseSock, object: &RuleType, value: &str, scoped: bool ) -> Result<()>
pub fn delete_rule( &mut self, db: &DatabaseSock, obj: &RuleType, rule: &str ) -> Result<()>
pub fn rules(&self) -> Vec<(&'static str, String, bool)>
pub fn is_empty(&self) -> bool
pub fn len(&self) -> usize
pub fn matches(&self, object: &Insert) -> Result<bool>
Trait Implementations§
source§impl PartialEq<RuleSet> for RuleSet
impl PartialEq<RuleSet> for RuleSet
impl StructuralPartialEq for RuleSet
Auto Trait Implementations§
impl RefUnwindSafe for RuleSet
impl Send for RuleSet
impl Sync for RuleSet
impl Unpin for RuleSet
impl UnwindSafe for RuleSet
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
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
source§impl<T> IntoSql for T
impl<T> IntoSql for T
source§fn into_sql<T>(self) -> Self::Expressionwhere
Self: AsExpression<T> + Sized,
fn into_sql<T>(self) -> Self::Expressionwhere Self: AsExpression<T> + Sized,
Convert
self
to an expression for Diesel’s query builder. Read moresource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere
&'a Self: AsExpression<T>,
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expressionwhere &'a Self: AsExpression<T>,
Convert
&self
to an expression for Diesel’s query builder. Read more