Struct aws_sdk_wisdom::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 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 build(self) -> ResultData
pub fn build(self) -> ResultData
Consumes the builder and constructs a ResultData
.
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<ResultDataBuilder> for ResultDataBuilder
impl PartialEq<ResultDataBuilder> 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