pub struct QueryPlan<E>where
E: SearchEntity,{
pub meta: &'static EntityMeta,
pub server_predicate: PredicateArena,
pub server_group_predicate: PredicateArena,
pub row_predicate: PredicateArena,
pub group_predicate: PredicateArena,
pub projection: Vec<FieldId>,
pub projection_aliases: Option<Vec<&'static str>>,
pub order: Vec<OrderBy>,
pub paging: Paging,
pub target: QueryTarget,
pub distinct: bool,
pub force_empty: bool,
/* private fields */
}Expand description
Immutable input to a backend renderer.
Fields§
§meta: &'static EntityMeta§server_predicate: PredicateArena§server_group_predicate: PredicateArena§row_predicate: PredicateArena§group_predicate: PredicateArena§projection: Vec<FieldId>§projection_aliases: Option<Vec<&'static str>>§order: Vec<OrderBy>§paging: Paging§target: QueryTarget§distinct: bool§force_empty: boolImplementations§
Source§impl<E> QueryPlan<E>where
E: SearchEntity,
impl<E> QueryPlan<E>where
E: SearchEntity,
pub fn new( query: &UserQuery<E>, scope: &ServerScope<E>, target: QueryTarget, ) -> Result<QueryPlan<E>, PlanError>
pub fn new_with_scopes( query: &UserQuery<E>, scope: &ServerScope<E>, group_scope: &GroupScope<E>, target: QueryTarget, ) -> Result<QueryPlan<E>, PlanError>
pub fn condition_order_value( &self, field: FieldId, ) -> Result<Option<&ScalarValue>, ParamError>
pub fn for_projection<P>(
query: &UserQuery<E>,
scope: &ServerScope<E>,
) -> Result<QueryPlan<E>, PlanError>where
P: SearchProjection<E>,
pub const fn shape_fingerprint_seed(&self) -> u64
pub fn field_access(&self) -> &FieldAccessPolicy<E>
pub fn validate_field_access( &self, fields: impl IntoIterator<Item = FieldId>, ) -> Result<(), ParamError>
pub fn validate_predicate_access( &self, predicate: &PredicateArena, ) -> Result<(), ParamError>
Trait Implementations§
Auto Trait Implementations§
impl<E> Freeze for QueryPlan<E>
impl<E> RefUnwindSafe for QueryPlan<E>
impl<E> Send for QueryPlan<E>
impl<E> Sync for QueryPlan<E>
impl<E> Unpin for QueryPlan<E>
impl<E> UnsafeUnpin for QueryPlan<E>
impl<E> UnwindSafe for QueryPlan<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
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