pub struct SqlxLowerer<B, P, M = OrdinalProjection> { /* private fields */ }Expand description
SQLx lowerer for gatekeep residual policies.
Implementations§
Source§impl<B, P> SqlxLowerer<B, P, OrdinalProjection>where
B: GatekeepSqlxBackend,
impl<B, P> SqlxLowerer<B, P, OrdinalProjection>where
B: GatekeepSqlxBackend,
Source§impl<B, P, M> SqlxLowerer<B, P, M>where
B: GatekeepSqlxBackend,
impl<B, P, M> SqlxLowerer<B, P, M>where
B: GatekeepSqlxBackend,
Sourcepub const fn with_projection(predicates: P, projection: M) -> Self
pub const fn with_projection(predicates: P, projection: M) -> Self
Builds a lowerer using a caller-supplied projection strategy.
Sourcepub fn lower_filter<O>(
&self,
residual: &ResidualPolicy<O>,
cx: &Context,
) -> Result<SqlxFragment<B>, LowerError>where
P: SqlxFactPredicates<B>,
pub fn lower_filter<O>(
&self,
residual: &ResidualPolicy<O>,
cx: &Context,
) -> Result<SqlxFragment<B>, LowerError>where
P: SqlxFactPredicates<B>,
Lowers only the Boolean filter. This works for every outcome lattice.
Trait Implementations§
Source§impl<B: Clone, P: Clone, M: Clone> Clone for SqlxLowerer<B, P, M>
impl<B: Clone, P: Clone, M: Clone> Clone for SqlxLowerer<B, P, M>
Source§fn clone(&self) -> SqlxLowerer<B, P, M>
fn clone(&self) -> SqlxLowerer<B, P, M>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<O, B, P, M> QueryLowering<O> for SqlxLowerer<B, P, M>
impl<O, B, P, M> QueryLowering<O> for SqlxLowerer<B, P, M>
Source§type Filter = SqlxFragment<B>
type Filter = SqlxFragment<B>
Backend-specific boolean filter type.
Source§type Projection = SqlxFragment<B>
type Projection = SqlxFragment<B>
Backend-specific grade projection type.
Source§fn lower(
&self,
residual: &ResidualPolicy<O>,
cx: &Context,
) -> Result<Lowered<Self::Filter, Self::Projection>, LowerError>
fn lower( &self, residual: &ResidualPolicy<O>, cx: &Context, ) -> Result<Lowered<Self::Filter, Self::Projection>, LowerError>
Lowers a residual policy for an authorized-list query.
Auto Trait Implementations§
impl<B, P, M> Freeze for SqlxLowerer<B, P, M>
impl<B, P, M> RefUnwindSafe for SqlxLowerer<B, P, M>where
P: RefUnwindSafe,
M: RefUnwindSafe,
impl<B, P, M> Send for SqlxLowerer<B, P, M>
impl<B, P, M> Sync for SqlxLowerer<B, P, M>
impl<B, P, M> Unpin for SqlxLowerer<B, P, M>
impl<B, P, M> UnsafeUnpin for SqlxLowerer<B, P, M>where
P: UnsafeUnpin,
M: UnsafeUnpin,
impl<B, P, M> UnwindSafe for SqlxLowerer<B, P, M>where
P: UnwindSafe,
M: 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> 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