#[non_exhaustive]pub struct UpdateRecommendationStatusRequestEntry {
pub entry_id: String,
pub reference_id: String,
pub item: Option<UpdateRecommendationStatusItem>,
pub excluded: bool,
pub exclude_reason: Option<ExcludeRecommendationReason>,
}
Expand description
Defines the operational recommendation item that is to be included or excluded.
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.entry_id: String
An identifier for an entry in this batch that is used to communicate the result.
The entryId
s of a batch request need to be unique within a request.
reference_id: String
Reference identifier of the operational recommendation item.
item: Option<UpdateRecommendationStatusItem>
The operational recommendation item.
excluded: bool
Indicates if the operational recommendation needs to be excluded. If set to True, the operational recommendation will be excluded.
exclude_reason: Option<ExcludeRecommendationReason>
Indicates the reason for excluding an operational recommendation.
Implementations§
source§impl UpdateRecommendationStatusRequestEntry
impl UpdateRecommendationStatusRequestEntry
sourcepub fn entry_id(&self) -> &str
pub fn entry_id(&self) -> &str
An identifier for an entry in this batch that is used to communicate the result.
The entryId
s of a batch request need to be unique within a request.
sourcepub fn reference_id(&self) -> &str
pub fn reference_id(&self) -> &str
Reference identifier of the operational recommendation item.
sourcepub fn item(&self) -> Option<&UpdateRecommendationStatusItem>
pub fn item(&self) -> Option<&UpdateRecommendationStatusItem>
The operational recommendation item.
sourcepub fn excluded(&self) -> bool
pub fn excluded(&self) -> bool
Indicates if the operational recommendation needs to be excluded. If set to True, the operational recommendation will be excluded.
sourcepub fn exclude_reason(&self) -> Option<&ExcludeRecommendationReason>
pub fn exclude_reason(&self) -> Option<&ExcludeRecommendationReason>
Indicates the reason for excluding an operational recommendation.
source§impl UpdateRecommendationStatusRequestEntry
impl UpdateRecommendationStatusRequestEntry
sourcepub fn builder() -> UpdateRecommendationStatusRequestEntryBuilder
pub fn builder() -> UpdateRecommendationStatusRequestEntryBuilder
Creates a new builder-style object to manufacture UpdateRecommendationStatusRequestEntry
.
Trait Implementations§
source§impl Clone for UpdateRecommendationStatusRequestEntry
impl Clone for UpdateRecommendationStatusRequestEntry
source§fn clone(&self) -> UpdateRecommendationStatusRequestEntry
fn clone(&self) -> UpdateRecommendationStatusRequestEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl PartialEq for UpdateRecommendationStatusRequestEntry
impl PartialEq for UpdateRecommendationStatusRequestEntry
source§fn eq(&self, other: &UpdateRecommendationStatusRequestEntry) -> bool
fn eq(&self, other: &UpdateRecommendationStatusRequestEntry) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for UpdateRecommendationStatusRequestEntry
Auto Trait Implementations§
impl Freeze for UpdateRecommendationStatusRequestEntry
impl RefUnwindSafe for UpdateRecommendationStatusRequestEntry
impl Send for UpdateRecommendationStatusRequestEntry
impl Sync for UpdateRecommendationStatusRequestEntry
impl Unpin for UpdateRecommendationStatusRequestEntry
impl UnwindSafe for UpdateRecommendationStatusRequestEntry
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