#[non_exhaustive]pub struct UpdateCampaignInput {
pub name: Option<String>,
pub description: Option<String>,
pub data_extra_dimensions: Option<Vec<String>>,
pub action: Option<UpdateCampaignAction>,
}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 to update.
description: Option<String>The description of the campaign.
data_extra_dimensions: Option<Vec<String>>A list of vehicle attributes to associate with a signal.
Default: An empty array
action: Option<UpdateCampaignAction>Specifies how to update a campaign. The action can be one of the following:
-
APPROVE- To approve delivering a data collection scheme to vehicles. -
SUSPEND- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles in the suspended campaign will stop sending data. -
RESUME- To reactivate theSUSPENDcampaign. The campaign is redeployed to all vehicles and the vehicles will resume sending data. -
UPDATE- To update a campaign.
Implementations§
source§impl UpdateCampaignInput
impl UpdateCampaignInput
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
The description of the campaign.
sourcepub fn data_extra_dimensions(&self) -> &[String]
pub fn data_extra_dimensions(&self) -> &[String]
A list of vehicle attributes to associate with a signal.
Default: An empty array
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .data_extra_dimensions.is_none().
sourcepub fn action(&self) -> Option<&UpdateCampaignAction>
pub fn action(&self) -> Option<&UpdateCampaignAction>
Specifies how to update a campaign. The action can be one of the following:
-
APPROVE- To approve delivering a data collection scheme to vehicles. -
SUSPEND- To suspend collecting signal data. The campaign is deleted from vehicles and all vehicles in the suspended campaign will stop sending data. -
RESUME- To reactivate theSUSPENDcampaign. The campaign is redeployed to all vehicles and the vehicles will resume sending data. -
UPDATE- To update a campaign.
source§impl UpdateCampaignInput
impl UpdateCampaignInput
sourcepub fn builder() -> UpdateCampaignInputBuilder
pub fn builder() -> UpdateCampaignInputBuilder
Creates a new builder-style object to manufacture UpdateCampaignInput.
Trait Implementations§
source§impl Clone for UpdateCampaignInput
impl Clone for UpdateCampaignInput
source§fn clone(&self) -> UpdateCampaignInput
fn clone(&self) -> UpdateCampaignInput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for UpdateCampaignInput
impl Debug for UpdateCampaignInput
source§impl PartialEq for UpdateCampaignInput
impl PartialEq for UpdateCampaignInput
source§fn eq(&self, other: &UpdateCampaignInput) -> bool
fn eq(&self, other: &UpdateCampaignInput) -> bool
self and other values to be equal, and is used
by ==.