pub struct Sort {
pub field: String,
pub direction: SortDirection,
pub nulls: NullOrdering,
/* private fields */
}Fields§
§field: String§direction: SortDirection§nulls: NullOrderingImplementations§
Source§impl Sort
impl Sort
pub fn new(field: impl Into<String>, direction: SortDirection) -> Self
pub fn new_unsafe(field: impl Into<String>, direction: SortDirection) -> Self
pub fn asc(field: impl Into<String>) -> Self
pub fn desc(field: impl Into<String>) -> Self
pub fn asc_unsafe(field: impl Into<String>) -> Self
pub fn desc_unsafe(field: impl Into<String>) -> Self
pub fn nulls_first(self) -> Self
pub fn nulls_last(self) -> Self
pub fn nulls_default(self) -> Self
Sourcepub fn nulls_as_bool(&self) -> Option<bool>
pub fn nulls_as_bool(&self) -> Option<bool>
Returns nulls ordering as Option
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sort
impl RefUnwindSafe for Sort
impl Send for Sort
impl Sync for Sort
impl Unpin for Sort
impl UnwindSafe for Sort
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