pub struct FieldAccessPolicyBuilder<E>where
E: SearchEntity,{ /* private fields */ }Expand description
Builder for an explicit least-privilege field policy.
Implementations§
Source§impl<E> FieldAccessPolicyBuilder<E>where
E: SearchEntity,
impl<E> FieldAccessPolicyBuilder<E>where
E: SearchEntity,
pub fn allow<T, K>( self, field: FieldRef<E, T, K>, ) -> FieldAccessPolicyBuilder<E>
pub fn allow_id(self, field: FieldId) -> FieldAccessPolicyBuilder<E>
pub fn allow_all(self) -> FieldAccessPolicyBuilder<E>
pub fn build(self) -> Result<FieldAccessPolicy<E>, ParamError>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: Freeze,
impl<E> RefUnwindSafe for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: RefUnwindSafe,
impl<E> Send for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: Send,
impl<E> Sync for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: Sync,
impl<E> Unpin for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: Unpin,
impl<E> UnsafeUnpin for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: UnsafeUnpin,
impl<E> UnwindSafe for FieldAccessPolicyBuilder<E>where
FieldAccessPolicy<E>: 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> 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