pub enum GeoShape {
Box {
bottom_left: (f64, f64),
top_right: (f64, f64),
},
Polygon {
points: Vec<(f64, f64)>,
},
Center {
center: (f64, f64),
radius: f64,
},
}Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GeoShape
impl<'de> Deserialize<'de> for GeoShape
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 GeoShape
impl RefUnwindSafe for GeoShape
impl Send for GeoShape
impl Sync for GeoShape
impl Unpin for GeoShape
impl UnwindSafe for GeoShape
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