Struct aws_sdk_qconnect::types::RecommendationData
source · #[non_exhaustive]pub struct RecommendationData {
pub recommendation_id: String,
pub document: Option<Document>,
pub relevance_score: f64,
pub relevance_level: Option<RelevanceLevel>,
pub type: Option<RecommendationType>,
pub data: Option<DataSummary>,
}Expand description
Information about the recommendation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.recommendation_id: StringThe identifier of the recommendation.
document: Option<Document>The recommended document.
relevance_score: f64The relevance score of the recommendation.
relevance_level: Option<RelevanceLevel>The relevance level of the recommendation.
type: Option<RecommendationType>The type of recommendation.
data: Option<DataSummary>Summary of the recommended content.
Implementations§
source§impl RecommendationData
impl RecommendationData
sourcepub fn recommendation_id(&self) -> &str
pub fn recommendation_id(&self) -> &str
The identifier of the recommendation.
sourcepub fn relevance_score(&self) -> f64
pub fn relevance_score(&self) -> f64
The relevance score of the recommendation.
sourcepub fn relevance_level(&self) -> Option<&RelevanceLevel>
pub fn relevance_level(&self) -> Option<&RelevanceLevel>
The relevance level of the recommendation.
sourcepub fn type(&self) -> Option<&RecommendationType>
pub fn type(&self) -> Option<&RecommendationType>
The type of recommendation.
sourcepub fn data(&self) -> Option<&DataSummary>
pub fn data(&self) -> Option<&DataSummary>
Summary of the recommended content.
source§impl RecommendationData
impl RecommendationData
sourcepub fn builder() -> RecommendationDataBuilder
pub fn builder() -> RecommendationDataBuilder
Creates a new builder-style object to manufacture RecommendationData.
Trait Implementations§
source§impl Clone for RecommendationData
impl Clone for RecommendationData
source§fn clone(&self) -> RecommendationData
fn clone(&self) -> RecommendationData
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 RecommendationData
impl Debug for RecommendationData
source§impl PartialEq for RecommendationData
impl PartialEq for RecommendationData
source§fn eq(&self, other: &RecommendationData) -> bool
fn eq(&self, other: &RecommendationData) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for RecommendationData
Auto Trait Implementations§
impl RefUnwindSafe for RecommendationData
impl Send for RecommendationData
impl Sync for RecommendationData
impl Unpin for RecommendationData
impl UnwindSafe for RecommendationData
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.