pub struct IndexColumnOrder {
pub descending: bool,
pub nulls_first: Option<bool>,
}Expand description
v7.39 (round 537) — a CREATE INDEX key column’s ordering clause.
SPG’s index does not scan in a direction, but indexdef reproduces
the DDL and dropping this made (a DESC NULLS LAST) read back as
(a). nulls_first is None when the statement did not say, in
which case PG’s default applies — LAST for ascending, FIRST for
descending, and neither is rendered.
Fields§
§descending: bool§nulls_first: Option<bool>Trait Implementations§
Source§impl Clone for IndexColumnOrder
impl Clone for IndexColumnOrder
Source§fn clone(&self) -> IndexColumnOrder
fn clone(&self) -> IndexColumnOrder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for IndexColumnOrder
Source§impl Debug for IndexColumnOrder
impl Debug for IndexColumnOrder
Source§impl Default for IndexColumnOrder
impl Default for IndexColumnOrder
Source§fn default() -> IndexColumnOrder
fn default() -> IndexColumnOrder
Returns the “default value” for a type. Read more
impl Eq for IndexColumnOrder
Source§impl PartialEq for IndexColumnOrder
impl PartialEq for IndexColumnOrder
impl StructuralPartialEq for IndexColumnOrder
Auto Trait Implementations§
impl Freeze for IndexColumnOrder
impl RefUnwindSafe for IndexColumnOrder
impl Send for IndexColumnOrder
impl Sync for IndexColumnOrder
impl Unpin for IndexColumnOrder
impl UnsafeUnpin for IndexColumnOrder
impl UnwindSafe for IndexColumnOrder
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