pub struct Section {
pub auto_collapse: bool,
pub body: Option<Text>,
pub classification: ClassificationString,
pub body_format: BodyFormat,
pub body_config: Option<HashMap<String, Value>>,
pub depth: i32,
pub heuristic: Option<Heuristic>,
pub tags: Box<Tagging>,
pub safelisted_tags: HashMap<String, Vec<Keyword>>,
pub title_text: Text,
pub promote_to: Option<PromoteTo>,
}
Expand description
Result Section
Fields§
§auto_collapse: bool
Should the section be collapsed when displayed?
body: Option<Text>
Text body of the result section
classification: ClassificationString
Classification of the section
body_format: BodyFormat
Type of body in this section
body_config: Option<HashMap<String, Value>>
Configurations for the body of this section
depth: i32
Depth of the section
heuristic: Option<Heuristic>
Heuristic used to score result section
List of tags associated to this section
List of safelisted tags
title_text: Text
Title of the section
promote_to: Option<PromoteTo>
This is the type of data that the current section should be promoted to.
Trait Implementations§
Source§impl Described<ElasticMeta> for Section
impl Described<ElasticMeta> for Section
Source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
Source§impl<'de> Deserialize<'de> for Section
impl<'de> Deserialize<'de> for Section
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 Section
impl RefUnwindSafe for Section
impl Send for Section
impl Sync for Section
impl Unpin for Section
impl UnwindSafe for Section
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more