pub struct ServerScope<E: SearchEntity> { /* private fields */ }Expand description
Service-controlled row-level predicate.
Implementations§
Source§impl<E: SearchEntity> ServerScope<E>
impl<E: SearchEntity> ServerScope<E>
pub fn unrestricted() -> Self
Sourcepub fn with_field_access(
self,
field_access: FieldAccessPolicy<E>,
) -> Result<Self, ParamError>
pub fn with_field_access( self, field_access: FieldAccessPolicy<E>, ) -> Result<Self, ParamError>
Attaches a server-owned field policy to this row scope.
pub fn field_access(&self) -> &FieldAccessPolicy<E>
pub fn predicate(&self) -> &PredicateArena
Source§impl<E: SearchEntity> ServerScope<E>
impl<E: SearchEntity> ServerScope<E>
pub fn new() -> ServerScopeBuilder<E>
pub fn builder(limits: ScopeLimits) -> ServerScopeBuilder<E>
pub fn all(scopes: impl IntoIterator<Item = Self>) -> Result<Self, ParamError>
pub fn any(scopes: impl IntoIterator<Item = Self>) -> Result<Self, ParamError>
pub fn all_with_limits( scopes: impl IntoIterator<Item = Self>, limits: ScopeLimits, ) -> Result<Self, ParamError>
pub fn any_with_limits( scopes: impl IntoIterator<Item = Self>, limits: ScopeLimits, ) -> Result<Self, ParamError>
Trait Implementations§
Source§impl<E: Clone + SearchEntity> Clone for ServerScope<E>
impl<E: Clone + SearchEntity> Clone for ServerScope<E>
Auto Trait Implementations§
impl<E> Freeze for ServerScope<E>
impl<E> RefUnwindSafe for ServerScope<E>
impl<E> Send for ServerScope<E>
impl<E> Sync for ServerScope<E>
impl<E> Unpin for ServerScope<E>
impl<E> UnsafeUnpin for ServerScope<E>
impl<E> UnwindSafe for ServerScope<E>
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