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