Struct aws_sdk_iot::types::LocationAction
source · #[non_exhaustive]pub struct LocationAction {
pub role_arn: String,
pub tracker_name: String,
pub device_id: String,
pub timestamp: Option<LocationTimestamp>,
pub latitude: String,
pub longitude: String,
}
Expand description
The Amazon Location rule action sends device location updates from an MQTT message to an Amazon Location tracker resource.
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.role_arn: String
The IAM role that grants permission to write to the Amazon Location resource.
tracker_name: String
The name of the tracker resource in Amazon Location in which the location is updated.
device_id: String
The unique ID of the device providing the location data.
timestamp: Option<LocationTimestamp>
The time that the location data was sampled. The default value is the time the MQTT message was processed.
latitude: String
A string that evaluates to a double value that represents the latitude of the device's location.
longitude: String
A string that evaluates to a double value that represents the longitude of the device's location.
Implementations§
source§impl LocationAction
impl LocationAction
sourcepub fn role_arn(&self) -> &str
pub fn role_arn(&self) -> &str
The IAM role that grants permission to write to the Amazon Location resource.
sourcepub fn tracker_name(&self) -> &str
pub fn tracker_name(&self) -> &str
The name of the tracker resource in Amazon Location in which the location is updated.
sourcepub fn timestamp(&self) -> Option<&LocationTimestamp>
pub fn timestamp(&self) -> Option<&LocationTimestamp>
The time that the location data was sampled. The default value is the time the MQTT message was processed.
source§impl LocationAction
impl LocationAction
sourcepub fn builder() -> LocationActionBuilder
pub fn builder() -> LocationActionBuilder
Creates a new builder-style object to manufacture LocationAction
.
Trait Implementations§
source§impl Clone for LocationAction
impl Clone for LocationAction
source§fn clone(&self) -> LocationAction
fn clone(&self) -> LocationAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for LocationAction
impl Debug for LocationAction
source§impl PartialEq for LocationAction
impl PartialEq for LocationAction
source§fn eq(&self, other: &LocationAction) -> bool
fn eq(&self, other: &LocationAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for LocationAction
Auto Trait Implementations§
impl Freeze for LocationAction
impl RefUnwindSafe for LocationAction
impl Send for LocationAction
impl Sync for LocationAction
impl Unpin for LocationAction
impl UnwindSafe for LocationAction
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> 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