pub struct OrderByItem {
pub expr: Expression,
pub direction: OrderDirection,
pub span: Range<usize>,
}Expand description
An item in an ORDER BY clause.
Fields§
§expr: ExpressionThe expression to order by.
direction: OrderDirectionThe direction of the ordering.
span: Range<usize>The span of the ORDER BY item.
Trait Implementations§
Source§impl AsDocument for OrderByItem
Available on crate feature oak-pretty-print only.
impl AsDocument for OrderByItem
Available on crate feature
oak-pretty-print only.Source§fn as_document(&self) -> Document<'_>
fn as_document(&self) -> Document<'_>
Converts this type to a document for pretty printing.
Source§impl Clone for OrderByItem
impl Clone for OrderByItem
Source§fn clone(&self) -> OrderByItem
fn clone(&self) -> OrderByItem
Returns a duplicate of the value. Read more
1.0.0 · 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 OrderByItem
impl Debug for OrderByItem
Source§impl<'de> Deserialize<'de> for OrderByItem
impl<'de> Deserialize<'de> for OrderByItem
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
Source§impl Serialize for OrderByItem
impl Serialize for OrderByItem
Source§impl ToSource for OrderByItem
impl ToSource for OrderByItem
Source§fn to_source(&self, buffer: &mut SourceBuffer)
fn to_source(&self, buffer: &mut SourceBuffer)
Writes the source code representation of this type to the provided buffer.
Source§fn to_source_string(&self) -> String
fn to_source_string(&self) -> String
Converts this type to a source code string.
Auto Trait Implementations§
impl Freeze for OrderByItem
impl RefUnwindSafe for OrderByItem
impl Send for OrderByItem
impl Sync for OrderByItem
impl Unpin for OrderByItem
impl UnsafeUnpin for OrderByItem
impl UnwindSafe for OrderByItem
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