pub struct AclTagIndex { /* private fields */ }Expand description
ACL tag index for row-level security
This would be integrated with MetadataIndex to provide: tag → bitmap of doc_ids with that tag
Implementations§
Source§impl AclTagIndex
impl AclTagIndex
Sourcepub fn docs_with_tag(&self, tag: &str) -> &[u64]
pub fn docs_with_tag(&self, tag: &str) -> &[u64]
Get doc_ids with a specific tag
Sourcepub fn accessible_docs(&self, allowed_tags: &[String]) -> Vec<u64>
pub fn accessible_docs(&self, allowed_tags: &[String]) -> Vec<u64>
Get doc_ids accessible by a set of allowed tags (union)
Trait Implementations§
Source§impl Debug for AclTagIndex
impl Debug for AclTagIndex
Source§impl Default for AclTagIndex
impl Default for AclTagIndex
Source§fn default() -> AclTagIndex
fn default() -> AclTagIndex
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AclTagIndex
impl RefUnwindSafe for AclTagIndex
impl Send for AclTagIndex
impl Sync for AclTagIndex
impl Unpin for AclTagIndex
impl UnwindSafe for AclTagIndex
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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