#[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 ==.impl StructuralPartialEq for UpdateCampaignInput
Auto Trait Implementations§
impl Freeze for UpdateCampaignInput
impl RefUnwindSafe for UpdateCampaignInput
impl Send for UpdateCampaignInput
impl Sync for UpdateCampaignInput
impl Unpin for UpdateCampaignInput
impl UnwindSafe for UpdateCampaignInput
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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