pub struct FtSearchResultRow {
pub id: String,
pub score: f64,
pub payload: String,
pub sortkey: String,
pub values: Vec<(String, String)>,
pub extra_attributes: Vec<(String, String)>,
}
Expand description
A row in a FtSearchResult
Fields§
§id: String
Document id. Will be empty for ft_aggregate
score: f64
relative internal score of each document. only if withscores
is set
payload: String
document payload. only if withpayloads
is set
sortkey: String
value of the sorting key. only if withsortkeys
is set
values: Vec<(String, String)>
collection of attribute/value pairs.
extra_attributes: Vec<(String, String)>
collection of attribute/value pairs.
Trait Implementations§
Source§impl Debug for FtSearchResultRow
impl Debug for FtSearchResultRow
Source§impl Default for FtSearchResultRow
impl Default for FtSearchResultRow
Source§fn default() -> FtSearchResultRow
fn default() -> FtSearchResultRow
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FtSearchResultRow
impl<'de> Deserialize<'de> for FtSearchResultRow
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 FtSearchResultRow
impl RefUnwindSafe for FtSearchResultRow
impl Send for FtSearchResultRow
impl Sync for FtSearchResultRow
impl Unpin for FtSearchResultRow
impl UnwindSafe for FtSearchResultRow
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