#[non_exhaustive]pub struct OrderByElement {
pub field_name: String,
pub sort_order: Option<OrderString>,
}
Expand description
A field and direction for ordered output.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.field_name: String
The field on which to order.
sort_order: Option<OrderString>
Ordering direction.
Implementations§
source§impl OrderByElement
impl OrderByElement
sourcepub fn field_name(&self) -> &str
pub fn field_name(&self) -> &str
The field on which to order.
sourcepub fn sort_order(&self) -> Option<&OrderString>
pub fn sort_order(&self) -> Option<&OrderString>
Ordering direction.
source§impl OrderByElement
impl OrderByElement
sourcepub fn builder() -> OrderByElementBuilder
pub fn builder() -> OrderByElementBuilder
Creates a new builder-style object to manufacture OrderByElement
.
Trait Implementations§
source§impl Clone for OrderByElement
impl Clone for OrderByElement
source§fn clone(&self) -> OrderByElement
fn clone(&self) -> OrderByElement
Returns a copy 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 OrderByElement
impl Debug for OrderByElement
source§impl PartialEq for OrderByElement
impl PartialEq for OrderByElement
source§fn eq(&self, other: &OrderByElement) -> bool
fn eq(&self, other: &OrderByElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OrderByElement
Auto Trait Implementations§
impl Freeze for OrderByElement
impl RefUnwindSafe for OrderByElement
impl Send for OrderByElement
impl Sync for OrderByElement
impl Unpin for OrderByElement
impl UnwindSafe for OrderByElement
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.