pub struct AllowList { /* private fields */ }Implementations§
Source§impl AllowList
impl AllowList
pub fn apply( self, catalog_path: &str, findings: Vec<RuleFinding>, ) -> Vec<RuleFinding>
pub fn apply_with<T>( self, catalog_path: &str, findings: Vec<T>, finding: impl Fn(&T) -> &RuleFinding, wrap: impl Fn(RuleFinding) -> T, consumed: &[String], ) -> Vec<T>
Source§impl AllowList
impl AllowList
pub fn contains(&self, object: &str) -> bool
Sourcepub fn entry_keys(&self) -> impl Iterator<Item = (usize, &str)> + '_
pub fn entry_keys(&self) -> impl Iterator<Item = (usize, &str)> + '_
Entries and finding targets share one key: the table part decoded the way the catalog
reader normalizes table names, so table:"users" and table:users are one key and
table:"Orders" (how quote_ident writes a mixed-case table) is table:Orders.
pub fn entry_objects(&self) -> impl Iterator<Item = (usize, &str)> + '_
pub fn compile(rule_id: &str, entries: Vec<AllowEntry>) -> Result<Self>
Trait Implementations§
Auto Trait Implementations§
impl Forget for AllowList
impl Freeze for AllowListwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<AllowEntry>: Freeze,
PhantomData<String>: Freeze,
impl Move for AllowList
impl RefUnwindSafe for AllowList
impl Send for AllowListwhere
RawVecInner: Send,
impl Sync for AllowListwhere
RawVecInner: Sync,
impl Unpin for AllowList
impl UnsafeUnpin for AllowListwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<AllowEntry>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for AllowListwhere
RawVecInner: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more