Struct iceberg_rust::spec::sort::SortField
source · pub struct SortField {
pub source_id: i32,
pub transform: Transform,
pub direction: SortDirection,
pub null_order: NullOrder,
}
Expand description
Entry for every column that is to be sorted
Fields§
§source_id: i32
A source column id from the table’s schema
transform: Transform
A transform that is used to produce values to be sorted on from the source column.
direction: SortDirection
A sort direction, that can only be either asc or desc
null_order: NullOrder
A null order that describes the order of null values when sorted.
Trait Implementations§
source§impl<'de> Deserialize<'de> for SortField
impl<'de> Deserialize<'de> for SortField
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SortField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<SortField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for SortField
impl PartialEq for SortField
source§impl Serialize for SortField
impl Serialize for SortField
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SortField
impl StructuralPartialEq for SortField
Auto Trait Implementations§
impl Freeze for SortField
impl RefUnwindSafe for SortField
impl Send for SortField
impl Sync for SortField
impl Unpin for SortField
impl UnwindSafe for SortField
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.