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 ==.impl StructuralPartialEq for VehicleStatus
Auto Trait Implementations§
impl Freeze for VehicleStatus
impl RefUnwindSafe for VehicleStatus
impl Send for VehicleStatus
impl Sync for VehicleStatus
impl Unpin for VehicleStatus
impl UnwindSafe for VehicleStatus
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