pub struct DeviceGeolocation {
pub point: Option<Geolocation>,
}Expand description
Device geolocation JSON schema.
This JSON schema corresponds to GET and PUT requests on
/api/geolocation. The GET request contains the current device geolocation,
or None if it has never been set or if it has been cleared. The PUT
request sets the current device geolocation, or clears it the request
contains None.
Fields§
§point: Option<Geolocation>Current device geolocation.
Trait Implementations§
Source§impl Clone for DeviceGeolocation
impl Clone for DeviceGeolocation
Source§fn clone(&self) -> DeviceGeolocation
fn clone(&self) -> DeviceGeolocation
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 DeviceGeolocation
impl Debug for DeviceGeolocation
Source§impl Default for DeviceGeolocation
impl Default for DeviceGeolocation
Source§fn default() -> DeviceGeolocation
fn default() -> DeviceGeolocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceGeolocation
impl<'de> Deserialize<'de> for DeviceGeolocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for DeviceGeolocation
impl PartialEq for DeviceGeolocation
Source§impl Serialize for DeviceGeolocation
impl Serialize for DeviceGeolocation
impl StructuralPartialEq for DeviceGeolocation
Auto Trait Implementations§
impl Freeze for DeviceGeolocation
impl RefUnwindSafe for DeviceGeolocation
impl Send for DeviceGeolocation
impl Sync for DeviceGeolocation
impl Unpin for DeviceGeolocation
impl UnwindSafe for DeviceGeolocation
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