pub struct OrderBy {
pub field: String,
pub expr: Option<Expr>,
pub direction: SortDirection,
}Fields§
§field: String§expr: Option<Expr>§direction: SortDirectionImplementations§
Source§impl OrderBy
impl OrderBy
pub fn new(field: impl Into<String>, direction: SortDirection) -> Self
pub fn expr(expr: Expr, direction: SortDirection) -> Self
pub fn asc(field: impl Into<String>) -> Self
pub fn desc(field: impl Into<String>) -> Self
pub fn asc_expr(expr: Expr) -> Self
pub fn desc_expr(expr: Expr) -> Self
pub fn asc_gbk(field: impl Into<String>) -> Self
pub fn desc_gbk(field: impl Into<String>) -> Self
Trait Implementations§
impl StructuralPartialEq for OrderBy
Auto Trait Implementations§
impl Freeze for OrderBy
impl RefUnwindSafe for OrderBy
impl Send for OrderBy
impl Sync for OrderBy
impl Unpin for OrderBy
impl UnsafeUnpin 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