pub struct ContentsOptions {
pub text: Option<TextContentsOptions>,
pub highlights: Option<HighlightsContentsOptions>,
pub summary: Option<SummaryContentsOptions>,
}Expand description
Options for what content to retrieve with search results
Fields§
§text: Option<TextContentsOptions>Include full text content
highlights: Option<HighlightsContentsOptions>Include highlights/snippets
summary: Option<SummaryContentsOptions>Include summary
Trait Implementations§
Source§impl Clone for ContentsOptions
impl Clone for ContentsOptions
Source§fn clone(&self) -> ContentsOptions
fn clone(&self) -> ContentsOptions
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 ContentsOptions
impl Debug for ContentsOptions
Source§impl Default for ContentsOptions
impl Default for ContentsOptions
Source§fn default() -> ContentsOptions
fn default() -> ContentsOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentsOptions
impl<'de> Deserialize<'de> for ContentsOptions
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 ContentsOptions
impl RefUnwindSafe for ContentsOptions
impl Send for ContentsOptions
impl Sync for ContentsOptions
impl Unpin for ContentsOptions
impl UnsafeUnpin for ContentsOptions
impl UnwindSafe for ContentsOptions
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