pub struct PropertySort {
pub property: Vec<String>,
pub direction: Option<SortDirection>,
pub nulls_first: Option<bool>,
}Expand description
Sort on a dynamic property
Fields§
§property: Vec<String>List of strings representing the property
direction: Option<SortDirection>Direction to sort.
nulls_first: Option<bool>Whether nulls are first or last.
Implementations§
Source§impl PropertySort
impl PropertySort
Sourcepub fn new(
property: impl PropertyIdentifier,
direction: SortDirection,
nulls_first: bool,
) -> Self
pub fn new( property: impl PropertyIdentifier, direction: SortDirection, nulls_first: bool, ) -> Self
Create a new property sort object.
§Arguments
property- Property to sort bydirection- Direction to sort in.nulls_first- Whether to put nulls first or last.
Trait Implementations§
Source§impl Clone for PropertySort
impl Clone for PropertySort
Source§fn clone(&self) -> PropertySort
fn clone(&self) -> PropertySort
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 PropertySort
impl Debug for PropertySort
Source§impl<'de> Deserialize<'de> for PropertySort
impl<'de> Deserialize<'de> for PropertySort
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
Auto Trait Implementations§
impl Freeze for PropertySort
impl RefUnwindSafe for PropertySort
impl Send for PropertySort
impl Sync for PropertySort
impl Unpin for PropertySort
impl UnwindSafe for PropertySort
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