Struct aws_sdk_qconnect::types::builders::RankingDataBuilder
source · #[non_exhaustive]pub struct RankingDataBuilder { /* private fields */ }Expand description
A builder for RankingData.
Implementations§
source§impl RankingDataBuilder
impl RankingDataBuilder
sourcepub fn relevance_score(self, input: f64) -> Self
pub fn relevance_score(self, input: f64) -> Self
The relevance level of the recommendation.
sourcepub fn set_relevance_score(self, input: Option<f64>) -> Self
pub fn set_relevance_score(self, input: Option<f64>) -> Self
The relevance level of the recommendation.
sourcepub fn get_relevance_score(&self) -> &Option<f64>
pub fn get_relevance_score(&self) -> &Option<f64>
The relevance level of the recommendation.
sourcepub fn relevance_level(self, input: RelevanceLevel) -> Self
pub fn relevance_level(self, input: RelevanceLevel) -> Self
The relevance score of the content.
sourcepub fn set_relevance_level(self, input: Option<RelevanceLevel>) -> Self
pub fn set_relevance_level(self, input: Option<RelevanceLevel>) -> Self
The relevance score of the content.
sourcepub fn get_relevance_level(&self) -> &Option<RelevanceLevel>
pub fn get_relevance_level(&self) -> &Option<RelevanceLevel>
The relevance score of the content.
sourcepub fn build(self) -> RankingData
pub fn build(self) -> RankingData
Consumes the builder and constructs a RankingData.
Trait Implementations§
source§impl Clone for RankingDataBuilder
impl Clone for RankingDataBuilder
source§fn clone(&self) -> RankingDataBuilder
fn clone(&self) -> RankingDataBuilder
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 RankingDataBuilder
impl Debug for RankingDataBuilder
source§impl Default for RankingDataBuilder
impl Default for RankingDataBuilder
source§fn default() -> RankingDataBuilder
fn default() -> RankingDataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for RankingDataBuilder
impl PartialEq for RankingDataBuilder
source§fn eq(&self, other: &RankingDataBuilder) -> bool
fn eq(&self, other: &RankingDataBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RankingDataBuilder
Auto Trait Implementations§
impl Freeze for RankingDataBuilder
impl RefUnwindSafe for RankingDataBuilder
impl Send for RankingDataBuilder
impl Sync for RankingDataBuilder
impl Unpin for RankingDataBuilder
impl UnwindSafe for RankingDataBuilder
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>
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 moreCreates a shared type from an unshared type.