#[non_exhaustive]pub struct FtSearchResultRow {
pub id: String,
pub score: FtScore,
pub payload: String,
pub sortkey: String,
pub values: Vec<(String, FtAttributeValue)>,
pub extra_attributes: Vec<(String, FtAttributeValue)>,
}Expand description
A row in a FtSearchResult
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringDocument id. Will be empty for ft_aggregate
score: FtScorerelative internal score of each document. only if withscores is set
payload: Stringdocument payload. only if withpayloads is set
sortkey: Stringvalue of the sorting key. only if withsortkeys is set
values: Vec<(String, FtAttributeValue)>collection of attribute/value pairs.
extra_attributes: Vec<(String, FtAttributeValue)>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§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 UnsafeUnpin 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