pub struct MerchantLocation {
pub latitude: Option<f64>,
pub longitude: Option<f64>,
}Expand description
Locations of interest for this class or object. Currently, this location is used for geofenced notifications. When a user is within a set radius of this lat/long, and dwells there, Google will trigger a notification. When a user exits this radius, the notification will be hidden.
This type is not used in any activity, and only used as part of another schema.
Fields§
§latitude: Option<f64>The latitude specified as any value in the range of -90.0 through +90.0, both inclusive. Values outside these bounds will be rejected.
longitude: Option<f64>The longitude specified in the range -180.0 through +180.0, both inclusive. Values outside these bounds will be rejected.
Trait Implementations§
Source§impl Clone for MerchantLocation
impl Clone for MerchantLocation
Source§fn clone(&self) -> MerchantLocation
fn clone(&self) -> MerchantLocation
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 MerchantLocation
impl Debug for MerchantLocation
Source§impl Default for MerchantLocation
impl Default for MerchantLocation
Source§fn default() -> MerchantLocation
fn default() -> MerchantLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MerchantLocation
impl<'de> Deserialize<'de> for MerchantLocation
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 Serialize for MerchantLocation
impl Serialize for MerchantLocation
impl Part for MerchantLocation
Auto Trait Implementations§
impl Freeze for MerchantLocation
impl RefUnwindSafe for MerchantLocation
impl Send for MerchantLocation
impl Sync for MerchantLocation
impl Unpin for MerchantLocation
impl UnwindSafe for MerchantLocation
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