#[repr(C)]pub struct MapMarker {
pub id: String,
pub lat: f64,
pub lng: f64,
pub title: Option<String>,
}Expand description
A pin on a Widget::Map. id is echoed back when the marker is tapped
(Action::Input { id: "{map_id}.marker", value: Text(marker.id) }).
Fields§
§id: String§lat: f64§lng: f64§title: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapMarker
impl<'de> Deserialize<'de> for MapMarker
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MapMarker, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MapMarker, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for MapMarker
impl Serialize for MapMarker
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for MapMarker
Auto Trait Implementations§
impl Freeze for MapMarker
impl RefUnwindSafe for MapMarker
impl Send for MapMarker
impl Sync for MapMarker
impl Unpin for MapMarker
impl UnsafeUnpin for MapMarker
impl UnwindSafe for MapMarker
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