pub struct CycleSort {
pub nulls: Option<PaginationNulls>,
pub order: Option<PaginationSortOrder>,
pub current_cycle_first: Option<bool>,
}Expand description
Issue cycle sorting options.
Fields§
§nulls: Option<PaginationNulls>Whether nulls should be sorted first or last
order: Option<PaginationSortOrder>The order for the individual sort
current_cycle_first: Option<bool>When set to true, cycles will be ordered with a custom order. Current cycle comes first, followed by upcoming cycles in ASC order, followed by previous cycles in DESC order.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CycleSort
impl<'de> Deserialize<'de> for CycleSort
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CycleSort
impl RefUnwindSafe for CycleSort
impl Send for CycleSort
impl Sync for CycleSort
impl Unpin for CycleSort
impl UnwindSafe for CycleSort
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