Struct aws_sdk_iotfleetwise::types::VehicleStatus
source · #[non_exhaustive]pub struct VehicleStatus {
pub campaign_name: Option<String>,
pub vehicle_name: Option<String>,
pub status: Option<VehicleState>,
}
Expand description
Information about the state of a vehicle and how it relates to the status of a campaign.
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.campaign_name: Option<String>
The name of a campaign.
vehicle_name: Option<String>
The unique ID of the vehicle.
status: Option<VehicleState>
The state of a vehicle, which can be one of the following:
-
CREATED
- Amazon Web Services IoT FleetWise sucessfully created the vehicle. -
READY
- The vehicle is ready to receive a campaign deployment. -
HEALTHY
- A campaign deployment was delivered to the vehicle. -
SUSPENDED
- A campaign associated with the vehicle was suspended and data collection was paused. -
DELETING
- Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.
Implementations§
source§impl VehicleStatus
impl VehicleStatus
sourcepub fn campaign_name(&self) -> Option<&str>
pub fn campaign_name(&self) -> Option<&str>
The name of a campaign.
sourcepub fn vehicle_name(&self) -> Option<&str>
pub fn vehicle_name(&self) -> Option<&str>
The unique ID of the vehicle.
sourcepub fn status(&self) -> Option<&VehicleState>
pub fn status(&self) -> Option<&VehicleState>
The state of a vehicle, which can be one of the following:
-
CREATED
- Amazon Web Services IoT FleetWise sucessfully created the vehicle. -
READY
- The vehicle is ready to receive a campaign deployment. -
HEALTHY
- A campaign deployment was delivered to the vehicle. -
SUSPENDED
- A campaign associated with the vehicle was suspended and data collection was paused. -
DELETING
- Amazon Web Services IoT FleetWise is removing a campaign from the vehicle.
source§impl VehicleStatus
impl VehicleStatus
sourcepub fn builder() -> VehicleStatusBuilder
pub fn builder() -> VehicleStatusBuilder
Creates a new builder-style object to manufacture VehicleStatus
.
Trait Implementations§
source§impl Clone for VehicleStatus
impl Clone for VehicleStatus
source§fn clone(&self) -> VehicleStatus
fn clone(&self) -> VehicleStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for VehicleStatus
impl Debug for VehicleStatus
source§impl PartialEq for VehicleStatus
impl PartialEq for VehicleStatus
source§fn eq(&self, other: &VehicleStatus) -> bool
fn eq(&self, other: &VehicleStatus) -> bool
self
and other
values to be equal, and is used
by ==
.