Struct aws_sdk_personalize::model::Campaign
source · [−]#[non_exhaustive]pub struct Campaign {
pub name: Option<String>,
pub campaign_arn: Option<String>,
pub solution_version_arn: Option<String>,
pub min_provisioned_tps: Option<i32>,
pub campaign_config: Option<CampaignConfig>,
pub status: Option<String>,
pub failure_reason: Option<String>,
pub creation_date_time: Option<DateTime>,
pub last_updated_date_time: Option<DateTime>,
pub latest_campaign_update: Option<CampaignUpdateSummary>,
}
Expand description
An object that describes the deployment of a solution version. For more information on campaigns, see CreateCampaign
.
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.name: Option<String>
The name of the campaign.
campaign_arn: Option<String>
The Amazon Resource Name (ARN) of the campaign.
solution_version_arn: Option<String>
The Amazon Resource Name (ARN) of a specific version of the solution.
min_provisioned_tps: Option<i32>
Specifies the requested minimum provisioned transactions (recommendations) per second.
campaign_config: Option<CampaignConfig>
The configuration details of a campaign.
status: Option<String>
The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
failure_reason: Option<String>
If a campaign fails, the reason behind the failure.
creation_date_time: Option<DateTime>
The date and time (in Unix format) that the campaign was created.
last_updated_date_time: Option<DateTime>
The date and time (in Unix format) that the campaign was last updated.
latest_campaign_update: Option<CampaignUpdateSummary>
Provides a summary of the properties of a campaign update. For a complete listing, call the DescribeCampaign
API.
Implementations
sourceimpl Campaign
impl Campaign
sourcepub fn campaign_arn(&self) -> Option<&str>
pub fn campaign_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the campaign.
sourcepub fn solution_version_arn(&self) -> Option<&str>
pub fn solution_version_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of a specific version of the solution.
sourcepub fn min_provisioned_tps(&self) -> Option<i32>
pub fn min_provisioned_tps(&self) -> Option<i32>
Specifies the requested minimum provisioned transactions (recommendations) per second.
sourcepub fn campaign_config(&self) -> Option<&CampaignConfig>
pub fn campaign_config(&self) -> Option<&CampaignConfig>
The configuration details of a campaign.
sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the campaign.
A campaign can be in one of the following states:
-
CREATE PENDING > CREATE IN_PROGRESS > ACTIVE -or- CREATE FAILED
-
DELETE PENDING > DELETE IN_PROGRESS
sourcepub fn failure_reason(&self) -> Option<&str>
pub fn failure_reason(&self) -> Option<&str>
If a campaign fails, the reason behind the failure.
sourcepub fn creation_date_time(&self) -> Option<&DateTime>
pub fn creation_date_time(&self) -> Option<&DateTime>
The date and time (in Unix format) that the campaign was created.
sourcepub fn last_updated_date_time(&self) -> Option<&DateTime>
pub fn last_updated_date_time(&self) -> Option<&DateTime>
The date and time (in Unix format) that the campaign was last updated.
sourcepub fn latest_campaign_update(&self) -> Option<&CampaignUpdateSummary>
pub fn latest_campaign_update(&self) -> Option<&CampaignUpdateSummary>
Provides a summary of the properties of a campaign update. For a complete listing, call the DescribeCampaign
API.
Trait Implementations
impl StructuralPartialEq for Campaign
Auto Trait Implementations
impl RefUnwindSafe for Campaign
impl Send for Campaign
impl Sync for Campaign
impl Unpin for Campaign
impl UnwindSafe for Campaign
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more