pub struct MapMarker {
pub lat: f64,
pub lng: f64,
pub popup: Option<String>,
pub color: Option<String>,
pub popup_html: Option<String>,
pub href: Option<String>,
}Expand description
A marker on the map.
Fields§
§lat: f64Latitude.
lng: f64Longitude.
popup: Option<String>Optional popup content (plain text).
color: Option<String>Hex color for DivIcon pin (e.g., “#3B82F6”). When set, renders as colored CSS pin.
popup_html: Option<String>HTML content for popup (alternative to plain text popup).
href: Option<String>URL to navigate to on marker click.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MapMarker
impl<'de> Deserialize<'de> for MapMarker
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 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