Struct aws_sdk_qconnect::types::builders::ResultDataBuilder
source · #[non_exhaustive]pub struct ResultDataBuilder { /* private fields */ }Expand description
A builder for ResultData.
Implementations§
source§impl ResultDataBuilder
impl ResultDataBuilder
sourcepub fn result_id(self, input: impl Into<String>) -> Self
pub fn result_id(self, input: impl Into<String>) -> Self
The identifier of the result data.
This field is required.sourcepub fn set_result_id(self, input: Option<String>) -> Self
pub fn set_result_id(self, input: Option<String>) -> Self
The identifier of the result data.
sourcepub fn get_result_id(&self) -> &Option<String>
pub fn get_result_id(&self) -> &Option<String>
The identifier of the result data.
sourcepub fn set_document(self, input: Option<Document>) -> Self
pub fn set_document(self, input: Option<Document>) -> Self
The document.
sourcepub fn get_document(&self) -> &Option<Document>
pub fn get_document(&self) -> &Option<Document>
The document.
sourcepub fn relevance_score(self, input: f64) -> Self
pub fn relevance_score(self, input: f64) -> Self
The relevance score of the results.
sourcepub fn set_relevance_score(self, input: Option<f64>) -> Self
pub fn set_relevance_score(self, input: Option<f64>) -> Self
The relevance score of the results.
sourcepub fn get_relevance_score(&self) -> &Option<f64>
pub fn get_relevance_score(&self) -> &Option<f64>
The relevance score of the results.
sourcepub fn data(self, input: DataSummary) -> Self
pub fn data(self, input: DataSummary) -> Self
Summary of the recommended content.
sourcepub fn set_data(self, input: Option<DataSummary>) -> Self
pub fn set_data(self, input: Option<DataSummary>) -> Self
Summary of the recommended content.
sourcepub fn get_data(&self) -> &Option<DataSummary>
pub fn get_data(&self) -> &Option<DataSummary>
Summary of the recommended content.
sourcepub fn type(self, input: QueryResultType) -> Self
pub fn type(self, input: QueryResultType) -> Self
The type of the query result.
sourcepub fn set_type(self, input: Option<QueryResultType>) -> Self
pub fn set_type(self, input: Option<QueryResultType>) -> Self
The type of the query result.
sourcepub fn get_type(&self) -> &Option<QueryResultType>
pub fn get_type(&self) -> &Option<QueryResultType>
The type of the query result.
sourcepub fn build(self) -> Result<ResultData, BuildError>
pub fn build(self) -> Result<ResultData, BuildError>
Consumes the builder and constructs a ResultData.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ResultDataBuilder
impl Clone for ResultDataBuilder
source§fn clone(&self) -> ResultDataBuilder
fn clone(&self) -> ResultDataBuilder
Returns a copy 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 ResultDataBuilder
impl Debug for ResultDataBuilder
source§impl Default for ResultDataBuilder
impl Default for ResultDataBuilder
source§fn default() -> ResultDataBuilder
fn default() -> ResultDataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ResultDataBuilder
impl PartialEq for ResultDataBuilder
source§fn eq(&self, other: &ResultDataBuilder) -> bool
fn eq(&self, other: &ResultDataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ResultDataBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ResultDataBuilder
impl Send for ResultDataBuilder
impl Sync for ResultDataBuilder
impl Unpin for ResultDataBuilder
impl UnwindSafe for ResultDataBuilder
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.