[−][src]Struct google_spectrum1_explorer::GeoLocationPolygon
A region is represented using the polygonal shape.
This type is not used in any activity, and only used as part of another schema.
Fields
exterior: Option<Vec<GeoLocationPoint>>
When the geolocation describes a region, the exterior field refers to a list of latitude/longitude points that represent the vertices of a polygon. The first and last points must be the same. Thus, a minimum of four points is required. The following polygon restrictions from RFC5491 apply:
- A connecting line shall not cross another connecting line of the same polygon.
- The vertices must be defined in a counterclockwise order.
- The edges of a polygon are defined by the shortest path between two points in space (not a geodesic curve). Consequently, the length between two adjacent vertices should be restricted to a maximum of 130 km.
- All vertices are assumed to be at the same altitude.
- Polygon shapes should be restricted to a maximum of 15 vertices (16 points that include the repeated vertex).
Trait Implementations
impl Part for GeoLocationPolygon
[src]
impl Default for GeoLocationPolygon
[src]
fn default() -> GeoLocationPolygon
[src]
impl Clone for GeoLocationPolygon
[src]
fn clone(&self) -> GeoLocationPolygon
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for GeoLocationPolygon
[src]
impl Serialize for GeoLocationPolygon
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for GeoLocationPolygon
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for GeoLocationPolygon
impl Unpin for GeoLocationPolygon
impl Sync for GeoLocationPolygon
impl UnwindSafe for GeoLocationPolygon
impl RefUnwindSafe for GeoLocationPolygon
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Typeable for T where
T: Any,
T: Any,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,