pub struct LocationBuilder { /* private fields */ }Expand description
Builder for the Location structure
Implementations§
Source§impl LocationBuilder
impl LocationBuilder
Sourcepub fn new(longitude: f32, latitude: f32, horizontal_accuracy: f32) -> Self
pub fn new(longitude: f32, latitude: f32, horizontal_accuracy: f32) -> Self
Instantiate the builder with the fields longitude, latitude, horizontal_accuracy, live_period, heading, proximity_alert_radius
Sourcepub fn live_period(self, val: i64) -> Self
pub fn live_period(self, val: i64) -> Self
Set the field live_period to the given value
Sourcepub fn proximity_alert_radius(self, val: i64) -> Self
pub fn proximity_alert_radius(self, val: i64) -> Self
Set the field proximity_alert_radius to the given value
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LocationBuilder
impl RefUnwindSafe for LocationBuilder
impl Send for LocationBuilder
impl Sync for LocationBuilder
impl Unpin for LocationBuilder
impl UnwindSafe for LocationBuilder
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