#[non_exhaustive]pub struct GetPositionOutput {
pub position: Option<Vec<f32>>,
pub accuracy: Option<Accuracy>,
pub solver_type: Option<PositionSolverType>,
pub solver_provider: Option<PositionSolverProvider>,
pub solver_version: Option<String>,
pub timestamp: Option<String>,
/* private fields */
}
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.position: Option<Vec<f32>>
The position information of the resource.
accuracy: Option<Accuracy>
The accuracy of the estimated position in meters. An empty value indicates that no position data is available. A value of ‘0.0’ value indicates that position data is available. This data corresponds to the position information that you specified instead of the position computed by solver.
solver_type: Option<PositionSolverType>
The type of solver used to identify the position of the resource.
solver_provider: Option<PositionSolverProvider>
The vendor of the positioning solver.
solver_version: Option<String>
The version of the positioning solver.
timestamp: Option<String>
The timestamp at which the device's position was determined.
Implementations§
source§impl GetPositionOutput
impl GetPositionOutput
sourcepub fn position(&self) -> &[f32]
pub fn position(&self) -> &[f32]
The position information of the resource.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .position.is_none()
.
sourcepub fn accuracy(&self) -> Option<&Accuracy>
pub fn accuracy(&self) -> Option<&Accuracy>
The accuracy of the estimated position in meters. An empty value indicates that no position data is available. A value of ‘0.0’ value indicates that position data is available. This data corresponds to the position information that you specified instead of the position computed by solver.
sourcepub fn solver_type(&self) -> Option<&PositionSolverType>
pub fn solver_type(&self) -> Option<&PositionSolverType>
The type of solver used to identify the position of the resource.
sourcepub fn solver_provider(&self) -> Option<&PositionSolverProvider>
pub fn solver_provider(&self) -> Option<&PositionSolverProvider>
The vendor of the positioning solver.
sourcepub fn solver_version(&self) -> Option<&str>
pub fn solver_version(&self) -> Option<&str>
The version of the positioning solver.
source§impl GetPositionOutput
impl GetPositionOutput
sourcepub fn builder() -> GetPositionOutputBuilder
pub fn builder() -> GetPositionOutputBuilder
Creates a new builder-style object to manufacture GetPositionOutput
.
Trait Implementations§
source§impl Clone for GetPositionOutput
impl Clone for GetPositionOutput
source§fn clone(&self) -> GetPositionOutput
fn clone(&self) -> GetPositionOutput
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetPositionOutput
impl Debug for GetPositionOutput
source§impl PartialEq for GetPositionOutput
impl PartialEq for GetPositionOutput
source§fn eq(&self, other: &GetPositionOutput) -> bool
fn eq(&self, other: &GetPositionOutput) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl RequestId for GetPositionOutput
impl RequestId for GetPositionOutput
source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for GetPositionOutput
Auto Trait Implementations§
impl Freeze for GetPositionOutput
impl RefUnwindSafe for GetPositionOutput
impl Send for GetPositionOutput
impl Sync for GetPositionOutput
impl Unpin for GetPositionOutput
impl UnwindSafe for GetPositionOutput
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