Enum query_structure::prelude::OrderBy
source · pub enum OrderBy {
Scalar(OrderByScalar),
ScalarAggregation(OrderByScalarAggregation),
ToManyAggregation(OrderByToManyAggregation),
Relevance(OrderByRelevance),
}
Variants§
Scalar(OrderByScalar)
ScalarAggregation(OrderByScalarAggregation)
ToManyAggregation(OrderByToManyAggregation)
Relevance(OrderByRelevance)
Implementations§
source§impl OrderBy
impl OrderBy
pub fn path(&self) -> Option<&[OrderByHop]>
pub fn sort_order(&self) -> SortOrder
pub fn field(&self) -> Option<ScalarFieldRef>
pub fn contains_relation_hops(&self) -> bool
pub fn scalar( field: ScalarFieldRef, path: Vec<OrderByHop>, sort_order: SortOrder, nulls_order: Option<NullsOrder> ) -> Self
pub fn scalar_aggregation( field: ScalarFieldRef, sort_order: SortOrder, sort_aggregation: SortAggregation ) -> Self
pub fn to_many_aggregation( path: Vec<OrderByHop>, sort_order: SortOrder, sort_aggregation: SortAggregation ) -> Self
pub fn relevance( fields: Vec<ScalarFieldRef>, search: String, sort_order: SortOrder ) -> Self
Trait Implementations§
source§impl From<Zipper<ScalarFieldId>> for OrderBy
impl From<Zipper<ScalarFieldId>> for OrderBy
source§fn from(field: ScalarFieldRef) -> Self
fn from(field: ScalarFieldRef) -> Self
Converts to this type from the input type.
source§impl PartialEq for OrderBy
impl PartialEq for OrderBy
impl Eq for OrderBy
impl StructuralEq for OrderBy
impl StructuralPartialEq for OrderBy
Auto Trait Implementations§
impl !RefUnwindSafe for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin for OrderBy
impl !UnwindSafe for OrderBy
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> CallHasher for Twhere
T: Hash + ?Sized,
impl<T> CallHasher for Twhere T: Hash + ?Sized,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.