pub struct OrderByItem {
pub expression: Expression,
pub direction: OrderDirection,
pub nulls: Option<NullsPosition>,
}Expand description
One ORDER BY item: expression ASC|DESC [NULLS FIRST|LAST].
PHP: Utopia\Query\AST\OrderByItem (expression, direction, nulls).
Fields§
§expression: ExpressionWhat is sorted.
direction: OrderDirectionThe direction (ASC by default).
nulls: Option<NullsPosition>Where NULLs go.
Implementations§
Source§impl OrderByItem
impl OrderByItem
Sourcepub fn new(expression: impl Into<Expression>, direction: OrderDirection) -> Self
pub fn new(expression: impl Into<Expression>, direction: OrderDirection) -> Self
expression direction.
PHP: new OrderByItem($expression, $direction).
Trait Implementations§
Source§impl Clone for OrderByItem
impl Clone for OrderByItem
Source§impl Debug for OrderByItem
impl Debug for OrderByItem
Source§impl PartialEq for OrderByItem
impl PartialEq for OrderByItem
impl StructuralPartialEq for OrderByItem
Auto Trait Implementations§
impl !Freeze for OrderByItem
impl Forget for OrderByItem
impl Move for OrderByItem
impl RefUnwindSafe for OrderByItemwhere
Atomic<*mut ()>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
OnceLock<Index>: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
impl Send for OrderByItem
impl Sync for OrderByItem
impl Unpin for OrderByItem
impl UnsafeUnpin for OrderByItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Expression>: UnsafeUnpin,
*const Expression is !null: UnsafeUnpin,
PhantomData<CaseWhen>: UnsafeUnpin,
*const Select is !null: UnsafeUnpin,
PhantomData<Select>: UnsafeUnpin,
*const WindowSpecification is !null: UnsafeUnpin,
PhantomData<WindowSpecification>: UnsafeUnpin,
&'static [u8]: UnsafeUnpin,
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const ArcInner<Repr<Object>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Repr<Object>>>: UnsafeUnpin,
*const Query is !null: UnsafeUnpin,
PhantomData<Query>: UnsafeUnpin,
impl UnwindSafe for OrderByItemwhere
RawVecInner: UnwindSafe,
BoxRaw<Expression>: UnwindSafe,
BoxRaw<Select>: UnwindSafe,
BoxRaw<WindowSpecification>: UnwindSafe,
&'static [u8]: UnwindSafe,
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
Arc<Repr<Object>>: UnwindSafe,
BoxRaw<Query>: UnwindSafe,
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