pub struct Geolocation {
pub latitude: f64,
pub longitude: f64,
pub accuracy: Option<f64>,
pub altitude: Option<f64>,
pub altitude_accuracy: Option<f64>,
pub heading: Option<f64>,
pub speed: Option<f64>,
}Expand description
Geolocation parameters for Emulation.setGeolocationOverride.
Fields§
§latitude: f64§longitude: f64§accuracy: Option<f64>§altitude: Option<f64>§altitude_accuracy: Option<f64>§heading: Option<f64>§speed: Option<f64>Implementations§
Source§impl Geolocation
impl Geolocation
pub fn new(latitude: f64, longitude: f64) -> Self
pub fn with_accuracy(self, accuracy: f64) -> Self
pub fn with_altitude(self, altitude: f64) -> Self
pub fn with_altitude_accuracy(self, altitude_accuracy: f64) -> Self
pub fn with_heading(self, heading: f64) -> Self
pub fn with_speed(self, speed: f64) -> Self
Trait Implementations§
Source§impl Clone for Geolocation
impl Clone for Geolocation
Source§fn clone(&self) -> Geolocation
fn clone(&self) -> Geolocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Geolocation
impl Debug for Geolocation
Auto Trait Implementations§
impl Freeze for Geolocation
impl RefUnwindSafe for Geolocation
impl Send for Geolocation
impl Sync for Geolocation
impl Unpin for Geolocation
impl UnwindSafe for Geolocation
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
Mutably borrows from an owned value. Read more