pub struct SortByField {
pub direction: Option<Option<SortOrder>>,
pub field: String,
pub prefetch_amount: Option<Option<i64>>,
}Fields§
§direction: Option<Option<SortOrder>>§field: StringField to sort by. This has to be a numeric field with a Qdrant Range index on it. i.e. num_value and timestamp
prefetch_amount: Option<Option<i64>>How many results to pull in before the sort
Implementations§
Source§impl SortByField
impl SortByField
pub fn new(field: String) -> SortByField
Trait Implementations§
Source§impl Clone for SortByField
impl Clone for SortByField
Source§fn clone(&self) -> SortByField
fn clone(&self) -> SortByField
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 SortByField
impl Debug for SortByField
Source§impl Default for SortByField
impl Default for SortByField
Source§fn default() -> SortByField
fn default() -> SortByField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SortByField
impl<'de> Deserialize<'de> for SortByField
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
Source§impl PartialEq for SortByField
impl PartialEq for SortByField
Source§impl Serialize for SortByField
impl Serialize for SortByField
impl StructuralPartialEq for SortByField
Auto Trait Implementations§
impl Freeze for SortByField
impl RefUnwindSafe for SortByField
impl Send for SortByField
impl Sync for SortByField
impl Unpin for SortByField
impl UnwindSafe for SortByField
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