pub struct AllowList { /* private fields */ }Implementations§
Source§impl AllowList
impl AllowList
pub fn valid_column_selector(selector: &str) -> bool
pub fn has_column_selectors(&self) -> bool
pub fn column_selector_is_ambiguous(&self, index: usize) -> bool
pub fn bind_catalog_columns(self, catalog: &SchemaCatalog) -> Self
pub fn bind_column_candidates<'a>( self, candidates: impl IntoIterator<Item = (&'a str, &'a str)>, ) -> Self
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: &[usize], ) -> Vec<T>
pub fn matching_objects<'a, const N: usize>( &'a self, objects: [&'a CatalogObjectRef; N], ) -> impl Iterator<Item = bool> + 'a
pub fn apply_objects( self, catalog_path: &str, findings: Vec<(CatalogObjectRef, RuleFinding)>, ) -> Vec<RuleFinding>
Source§impl AllowList
impl AllowList
pub fn contains(&self, object: &str) -> bool
pub fn matching_entries<'a, const N: usize>( &'a self, objects: [&'a str; N], ) -> impl Iterator<Item = bool> + 'a
pub fn entry_keys(&self) -> impl Iterator<Item = (usize, &str)> + '_
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,
PhantomData<bool>: 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,
PhantomData<bool>: 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