pub struct CibouletteSortingElement {
pub rel_chain: Vec<CibouletteResourceRelationshipDetails>,
pub direction: CibouletteSortingDirection,
pub field: ArcStr,
}Expand description
§Element of a sorting list.
Fields§
§rel_chain: Vec<CibouletteResourceRelationshipDetails>The relation chain
direction: CibouletteSortingDirectionThe direction of the sort
field: ArcStrThe field that is beeing sorted
Implementations§
Source§impl CibouletteSortingElement
impl CibouletteSortingElement
Sourcepub fn rel_chain(&self) -> &Vec<CibouletteResourceRelationshipDetails>
pub fn rel_chain(&self) -> &Vec<CibouletteResourceRelationshipDetails>
The relation chain
Sourcepub fn direction(&self) -> &CibouletteSortingDirection
pub fn direction(&self) -> &CibouletteSortingDirection
The direction of the sort
Source§impl CibouletteSortingElement
impl CibouletteSortingElement
Sourcepub fn new(
rel_chain: Vec<CibouletteResourceRelationshipDetails>,
direction: CibouletteSortingDirection,
field: ArcStr,
) -> Self
pub fn new( rel_chain: Vec<CibouletteResourceRelationshipDetails>, direction: CibouletteSortingDirection, field: ArcStr, ) -> Self
Create a new sorting element
Trait Implementations§
Source§impl Clone for CibouletteSortingElement
impl Clone for CibouletteSortingElement
Source§fn clone(&self) -> CibouletteSortingElement
fn clone(&self) -> CibouletteSortingElement
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 Debug for CibouletteSortingElement
impl Debug for CibouletteSortingElement
impl Eq for CibouletteSortingElement
Source§impl Ord for CibouletteSortingElement
impl Ord for CibouletteSortingElement
Source§fn cmp(&self, other: &CibouletteSortingElement) -> Ordering
fn cmp(&self, other: &CibouletteSortingElement) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CibouletteSortingElement
impl PartialEq for CibouletteSortingElement
Source§impl PartialOrd for CibouletteSortingElement
impl PartialOrd for CibouletteSortingElement
impl StructuralPartialEq for CibouletteSortingElement
Auto Trait Implementations§
impl Freeze for CibouletteSortingElement
impl RefUnwindSafe for CibouletteSortingElement
impl Send for CibouletteSortingElement
impl Sync for CibouletteSortingElement
impl Unpin for CibouletteSortingElement
impl UnsafeUnpin for CibouletteSortingElement
impl UnwindSafe for CibouletteSortingElement
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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