1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
/// <p>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.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Accuracy {
/// <p>The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.</p>
pub horizontal_accuracy: ::std::option::Option<f32>,
/// <p>The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.</p>
pub vertical_accuracy: ::std::option::Option<f32>,
}
impl Accuracy {
/// <p>The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.</p>
pub fn horizontal_accuracy(&self) -> ::std::option::Option<f32> {
self.horizontal_accuracy
}
/// <p>The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.</p>
pub fn vertical_accuracy(&self) -> ::std::option::Option<f32> {
self.vertical_accuracy
}
}
impl Accuracy {
/// Creates a new builder-style object to manufacture [`Accuracy`](crate::types::Accuracy).
pub fn builder() -> crate::types::builders::AccuracyBuilder {
crate::types::builders::AccuracyBuilder::default()
}
}
/// A builder for [`Accuracy`](crate::types::Accuracy).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct AccuracyBuilder {
pub(crate) horizontal_accuracy: ::std::option::Option<f32>,
pub(crate) vertical_accuracy: ::std::option::Option<f32>,
}
impl AccuracyBuilder {
/// <p>The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.</p>
pub fn horizontal_accuracy(mut self, input: f32) -> Self {
self.horizontal_accuracy = ::std::option::Option::Some(input);
self
}
/// <p>The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.</p>
pub fn set_horizontal_accuracy(mut self, input: ::std::option::Option<f32>) -> Self {
self.horizontal_accuracy = input;
self
}
/// <p>The horizontal accuracy of the estimated position, which is the difference between the estimated location and the actual device location.</p>
pub fn get_horizontal_accuracy(&self) -> &::std::option::Option<f32> {
&self.horizontal_accuracy
}
/// <p>The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.</p>
pub fn vertical_accuracy(mut self, input: f32) -> Self {
self.vertical_accuracy = ::std::option::Option::Some(input);
self
}
/// <p>The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.</p>
pub fn set_vertical_accuracy(mut self, input: ::std::option::Option<f32>) -> Self {
self.vertical_accuracy = input;
self
}
/// <p>The vertical accuracy of the estimated position, which is the difference between the estimated altitude and actual device latitude in meters.</p>
pub fn get_vertical_accuracy(&self) -> &::std::option::Option<f32> {
&self.vertical_accuracy
}
/// Consumes the builder and constructs a [`Accuracy`](crate::types::Accuracy).
pub fn build(self) -> crate::types::Accuracy {
crate::types::Accuracy {
horizontal_accuracy: self.horizontal_accuracy,
vertical_accuracy: self.vertical_accuracy,
}
}
}