pub struct PlacemarkMessage<'a> {
pub url: Option<&'a str>,
pub original_url: Option<&'a str>,
pub place_name: Option<&'a str>,
pub placemark: Placemark<'a>,
}Expand description
This struct is not documented by Apple, but represents messages displayed as
com.apple.messages.URLBalloonProvider but for the Maps app
Fields§
§url: Option<&'a str>URL that served the preview content.
original_url: Option<&'a str>Original URL before redirects.
place_name: Option<&'a str>Location display name.
placemark: Placemark<'a>Placemark data for the location.
Implementations§
Source§impl<'a> PlacemarkMessage<'a>
impl<'a> PlacemarkMessage<'a>
Sourcepub fn get_url(&self) -> Option<&str>
pub fn get_url(&self) -> Option<&str>
Resolve this message’s URL via HasUrl::get_url.
Trait Implementations§
Source§impl<'a> BalloonProvider<'a> for PlacemarkMessage<'a>
impl<'a> BalloonProvider<'a> for PlacemarkMessage<'a>
Source§impl<'a> Debug for PlacemarkMessage<'a>
impl<'a> Debug for PlacemarkMessage<'a>
impl<'a> Eq for PlacemarkMessage<'a>
Source§impl HasUrl for PlacemarkMessage<'_>
impl HasUrl for PlacemarkMessage<'_>
Source§impl<'a> PartialEq for PlacemarkMessage<'a>
impl<'a> PartialEq for PlacemarkMessage<'a>
Source§fn eq(&self, other: &PlacemarkMessage<'a>) -> bool
fn eq(&self, other: &PlacemarkMessage<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'a> StructuralPartialEq for PlacemarkMessage<'a>
Auto Trait Implementations§
impl<'a> Freeze for PlacemarkMessage<'a>
impl<'a> RefUnwindSafe for PlacemarkMessage<'a>
impl<'a> Send for PlacemarkMessage<'a>
impl<'a> Sync for PlacemarkMessage<'a>
impl<'a> Unpin for PlacemarkMessage<'a>
impl<'a> UnsafeUnpin for PlacemarkMessage<'a>
impl<'a> UnwindSafe for PlacemarkMessage<'a>
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
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.