#[non_exhaustive]pub struct RecommendationFeedback {
pub code_review_arn: Option<String>,
pub recommendation_id: Option<String>,
pub reactions: Option<Vec<Reaction>>,
pub user_id: Option<String>,
pub created_time_stamp: Option<DateTime>,
pub last_updated_time_stamp: Option<DateTime>,
}
Expand description
Information about the recommendation feedback.
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.code_review_arn: Option<String>
The Amazon Resource Name (ARN) of the CodeReview object.
recommendation_id: Option<String>
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
reactions: Option<Vec<Reaction>>
List for storing reactions. Reactions are utf-8 text code for emojis. You can send an empty list to clear off all your feedback.
user_id: Option<String>
The ID of the user that made the API call.
The UserId
is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the Amazon Web Services Identity and Access Management User Guide.
created_time_stamp: Option<DateTime>
The time at which the feedback was created.
last_updated_time_stamp: Option<DateTime>
The time at which the feedback was last updated.
Implementations§
source§impl RecommendationFeedback
impl RecommendationFeedback
sourcepub fn code_review_arn(&self) -> Option<&str>
pub fn code_review_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the CodeReview object.
sourcepub fn recommendation_id(&self) -> Option<&str>
pub fn recommendation_id(&self) -> Option<&str>
The recommendation ID that can be used to track the provided recommendations. Later on it can be used to collect the feedback.
sourcepub fn reactions(&self) -> &[Reaction]
pub fn reactions(&self) -> &[Reaction]
List for storing reactions. Reactions are utf-8 text code for emojis. You can send an empty list to clear off all your feedback.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .reactions.is_none()
.
sourcepub fn user_id(&self) -> Option<&str>
pub fn user_id(&self) -> Option<&str>
The ID of the user that made the API call.
The UserId
is an IAM principal that can be specified as an Amazon Web Services account ID or an Amazon Resource Name (ARN). For more information, see Specifying a Principal in the Amazon Web Services Identity and Access Management User Guide.
sourcepub fn created_time_stamp(&self) -> Option<&DateTime>
pub fn created_time_stamp(&self) -> Option<&DateTime>
The time at which the feedback was created.
sourcepub fn last_updated_time_stamp(&self) -> Option<&DateTime>
pub fn last_updated_time_stamp(&self) -> Option<&DateTime>
The time at which the feedback was last updated.
source§impl RecommendationFeedback
impl RecommendationFeedback
sourcepub fn builder() -> RecommendationFeedbackBuilder
pub fn builder() -> RecommendationFeedbackBuilder
Creates a new builder-style object to manufacture RecommendationFeedback
.
Trait Implementations§
source§impl Clone for RecommendationFeedback
impl Clone for RecommendationFeedback
source§fn clone(&self) -> RecommendationFeedback
fn clone(&self) -> RecommendationFeedback
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RecommendationFeedback
impl Debug for RecommendationFeedback
source§impl PartialEq for RecommendationFeedback
impl PartialEq for RecommendationFeedback
source§fn eq(&self, other: &RecommendationFeedback) -> bool
fn eq(&self, other: &RecommendationFeedback) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RecommendationFeedback
Auto Trait Implementations§
impl Freeze for RecommendationFeedback
impl RefUnwindSafe for RecommendationFeedback
impl Send for RecommendationFeedback
impl Sync for RecommendationFeedback
impl Unpin for RecommendationFeedback
impl UnwindSafe for RecommendationFeedback
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
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>
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>
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 more