Struct aws_sdk_cloudsearchdomain::types::builders::HitBuilder
source · #[non_exhaustive]pub struct HitBuilder { /* private fields */ }
Expand description
A builder for Hit
.
Implementations§
source§impl HitBuilder
impl HitBuilder
sourcepub fn id(self, input: impl Into<String>) -> Self
pub fn id(self, input: impl Into<String>) -> Self
The document ID of a document that matches the search request.
sourcepub fn set_id(self, input: Option<String>) -> Self
pub fn set_id(self, input: Option<String>) -> Self
The document ID of a document that matches the search request.
sourcepub fn get_id(&self) -> &Option<String>
pub fn get_id(&self) -> &Option<String>
The document ID of a document that matches the search request.
sourcepub fn fields(self, k: impl Into<String>, v: Vec<String>) -> Self
pub fn fields(self, k: impl Into<String>, v: Vec<String>) -> Self
Adds a key-value pair to fields
.
To override the contents of this collection use set_fields
.
The fields returned from a document that matches the search request.
sourcepub fn set_fields(self, input: Option<HashMap<String, Vec<String>>>) -> Self
pub fn set_fields(self, input: Option<HashMap<String, Vec<String>>>) -> Self
The fields returned from a document that matches the search request.
sourcepub fn get_fields(&self) -> &Option<HashMap<String, Vec<String>>>
pub fn get_fields(&self) -> &Option<HashMap<String, Vec<String>>>
The fields returned from a document that matches the search request.
sourcepub fn exprs(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn exprs(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to exprs
.
To override the contents of this collection use set_exprs
.
The expressions returned from a document that matches the search request.
sourcepub fn set_exprs(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_exprs(self, input: Option<HashMap<String, String>>) -> Self
The expressions returned from a document that matches the search request.
sourcepub fn get_exprs(&self) -> &Option<HashMap<String, String>>
pub fn get_exprs(&self) -> &Option<HashMap<String, String>>
The expressions returned from a document that matches the search request.
sourcepub fn highlights(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn highlights(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to highlights
.
To override the contents of this collection use set_highlights
.
The highlights returned from a document that matches the search request.
sourcepub fn set_highlights(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_highlights(self, input: Option<HashMap<String, String>>) -> Self
The highlights returned from a document that matches the search request.
Trait Implementations§
source§impl Clone for HitBuilder
impl Clone for HitBuilder
source§fn clone(&self) -> HitBuilder
fn clone(&self) -> HitBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HitBuilder
impl Debug for HitBuilder
source§impl Default for HitBuilder
impl Default for HitBuilder
source§fn default() -> HitBuilder
fn default() -> HitBuilder
source§impl PartialEq for HitBuilder
impl PartialEq for HitBuilder
source§fn eq(&self, other: &HitBuilder) -> bool
fn eq(&self, other: &HitBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.