pub struct SessionSearchAnswer {
pub matches: Vec<SessionSearchMatch>,
pub total: i64,
pub terms: Vec<String>,
pub dropped: Vec<String>,
pub truncated: bool,
pub lines: Vec<ScreenLine>,
}Expand description
Answer to session.search: the rows plus the screen the host composed.
total is what the host found and capped, not a count of every possible
hit; truncated says the host stopped at its own fetch bound, so the
number is a floor.
Fields§
§matches: Vec<SessionSearchMatch>The rows, best first.
total: i64How many rows the host is reporting.
terms: Vec<String>The keywords that were actually searched.
dropped: Vec<String>The keywords the corpus-frequency check threw away.
truncated: boolThe host stopped at its fetch bound: total is a floor.
lines: Vec<ScreenLine>The finished screen: a header, one line per row, and a footer.
Trait Implementations§
Source§impl Clone for SessionSearchAnswer
impl Clone for SessionSearchAnswer
Source§impl Debug for SessionSearchAnswer
impl Debug for SessionSearchAnswer
Source§impl<'de> Deserialize<'de> for SessionSearchAnswer
impl<'de> Deserialize<'de> for SessionSearchAnswer
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 SessionSearchAnswer
impl PartialEq for SessionSearchAnswer
Source§impl Serialize for SessionSearchAnswer
impl Serialize for SessionSearchAnswer
impl StructuralPartialEq for SessionSearchAnswer
Auto Trait Implementations§
impl Forget for SessionSearchAnswer
impl Freeze for SessionSearchAnswerwhere
*const u8 is !null: Freeze,
PhantomData<SessionSearchMatch>: Freeze,
PhantomData<String>: Freeze,
PhantomData<ScreenLine>: Freeze,
impl Move for SessionSearchAnswer
impl RefUnwindSafe for SessionSearchAnswer
impl Send for SessionSearchAnswerwhere
RawVecInner: Send,
impl Sync for SessionSearchAnswerwhere
RawVecInner: Sync,
impl Unpin for SessionSearchAnswer
impl UnsafeUnpin for SessionSearchAnswerwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<SessionSearchMatch>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<ScreenLine>: UnsafeUnpin,
impl UnwindSafe for SessionSearchAnswerwhere
RawVecInner: UnwindSafe,
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