pub struct PostLocation {
pub lat: Option<f64>,
pub lng: Option<f64>,
pub name: Option<String>,
pub span: Option<String>,
}Expand description
The location for geotagged posts.
This type is not used in any activity, and only used as part of another schema.
Fields§
§lat: Option<f64>Location’s latitude.
lng: Option<f64>Location’s longitude.
name: Option<String>Location name.
span: Option<String>Location’s viewport span. Can be used when rendering a map preview.
Trait Implementations§
Source§impl Clone for PostLocation
impl Clone for PostLocation
Source§fn clone(&self) -> PostLocation
fn clone(&self) -> PostLocation
Returns a duplicate 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 PostLocation
impl Debug for PostLocation
Source§impl Default for PostLocation
impl Default for PostLocation
Source§fn default() -> PostLocation
fn default() -> PostLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PostLocation
impl<'de> Deserialize<'de> for PostLocation
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
Source§impl Serialize for PostLocation
impl Serialize for PostLocation
impl NestedType for PostLocation
impl Part for PostLocation
Auto Trait Implementations§
impl Freeze for PostLocation
impl RefUnwindSafe for PostLocation
impl Send for PostLocation
impl Sync for PostLocation
impl Unpin for PostLocation
impl UnwindSafe for PostLocation
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