Struct aws_sdk_qconnect::types::RecommendationTrigger
source · #[non_exhaustive]pub struct RecommendationTrigger {
pub id: String,
pub type: RecommendationTriggerType,
pub source: RecommendationSourceType,
pub data: Option<RecommendationTriggerData>,
pub recommendation_ids: Vec<String>,
}Expand description
A recommendation trigger provides context on the event that produced the referenced recommendations. Recommendations are only referenced in recommendationIds by a single RecommendationTrigger.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringThe identifier of the recommendation trigger.
type: RecommendationTriggerTypeThe type of recommendation trigger.
source: RecommendationSourceTypeThe source of the recommendation trigger.
-
ISSUE_DETECTION: The corresponding recommendations were triggered by a Contact Lens issue.
-
RULE_EVALUATION: The corresponding recommendations were triggered by a Contact Lens rule.
data: Option<RecommendationTriggerData>A union type containing information related to the trigger.
recommendation_ids: Vec<String>The identifiers of the recommendations.
Implementations§
source§impl RecommendationTrigger
impl RecommendationTrigger
sourcepub fn type(&self) -> &RecommendationTriggerType
pub fn type(&self) -> &RecommendationTriggerType
The type of recommendation trigger.
sourcepub fn source(&self) -> &RecommendationSourceType
pub fn source(&self) -> &RecommendationSourceType
The source of the recommendation trigger.
-
ISSUE_DETECTION: The corresponding recommendations were triggered by a Contact Lens issue.
-
RULE_EVALUATION: The corresponding recommendations were triggered by a Contact Lens rule.
sourcepub fn data(&self) -> Option<&RecommendationTriggerData>
pub fn data(&self) -> Option<&RecommendationTriggerData>
A union type containing information related to the trigger.
sourcepub fn recommendation_ids(&self) -> &[String]
pub fn recommendation_ids(&self) -> &[String]
The identifiers of the recommendations.
source§impl RecommendationTrigger
impl RecommendationTrigger
sourcepub fn builder() -> RecommendationTriggerBuilder
pub fn builder() -> RecommendationTriggerBuilder
Creates a new builder-style object to manufacture RecommendationTrigger.
Trait Implementations§
source§impl Clone for RecommendationTrigger
impl Clone for RecommendationTrigger
source§fn clone(&self) -> RecommendationTrigger
fn clone(&self) -> RecommendationTrigger
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RecommendationTrigger
impl Debug for RecommendationTrigger
source§impl PartialEq for RecommendationTrigger
impl PartialEq for RecommendationTrigger
source§fn eq(&self, other: &RecommendationTrigger) -> bool
fn eq(&self, other: &RecommendationTrigger) -> bool
self and other values to be equal, and is used
by ==.