pub struct ExtraShape {
pub points: Vec<LonLat>,
pub attributes: BTreeMap<String, String>,
}
Expand description
A single object in the dataset.
Fields§
§points: Vec<LonLat>
The object has a different inferred shape depending on the points:
- a single point just represents a position
- a ring of points (with the first and last matching) is interpreted as a polygon
- multiple points are interpreted as a PolyLine
attributes: BTreeMap<String, String>
Arbitrary key/value pairs associated with this object; no known schema.
Trait Implementations§
Source§impl Clone for ExtraShape
impl Clone for ExtraShape
Source§fn clone(&self) -> ExtraShape
fn clone(&self) -> ExtraShape
Returns a copy 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 ExtraShape
impl Debug for ExtraShape
Source§impl<'de> Deserialize<'de> for ExtraShape
impl<'de> Deserialize<'de> for ExtraShape
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
Auto Trait Implementations§
impl Freeze for ExtraShape
impl RefUnwindSafe for ExtraShape
impl Send for ExtraShape
impl Sync for ExtraShape
impl Unpin for ExtraShape
impl UnwindSafe for ExtraShape
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