[−][src]Struct activitystreams::object::Place
Represents a logical or physical location.
The Place object is used to represent both physical and logical locations. While numerous existing vocabularies exist for describing locations in a variety of ways, inconsistencies and incompatibilities between those vocabularies make it difficult to achieve appropriate interoperability between implementations. The Place object is included within the Activity vocabulary to provide a minimal, interoperable starting point for describing locations consistently across Activity Streams 2.0 implementations.
The Place object is intentionally flexible. It can, for instance, be used to identify a location simply by name, or by longitude and latitude.
The Place object can also describe an area around a given point using the radius property, the altitude of the location, and a degree of accuracy.
While publishers are not required to use these specific properties and MAY make use of other mechanisms for describing locations, consuming implementations that support the Place object MUST support the use of these properties.
Fields
object_props: ObjectProperties
Adds all valid object properties to this struct
place: PlaceProperties
Adds all valid place properties to this struct
Implementations
impl Place
[src]
pub fn full() -> Ext<Place, ApObjectProperties>
[src]
Generate a fully extended type
This effect can be achieved with Self::new().extend(SomeExtension::default())
impl Place
[src]
Trait Implementations
impl AsMut<ObjectProperties> for Place
[src]
fn as_mut(&mut self) -> &mut ObjectProperties
[src]
impl AsMut<PlaceProperties> for Place
[src]
fn as_mut(&mut self) -> &mut PlaceProperties
[src]
impl AsRef<ObjectProperties> for Place
[src]
fn as_ref(&self) -> &ObjectProperties
[src]
impl AsRef<PlaceProperties> for Place
[src]
fn as_ref(&self) -> &PlaceProperties
[src]
impl Base for Place
[src]
impl Clone for Place
[src]
impl Debug for Place
[src]
impl Default for Place
[src]
impl<'de> Deserialize<'de> for Place
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Object for Place
[src]
impl Serialize for Place
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl TryFrom<Place> for BaseBox
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(s: Place) -> Result<Self, Self::Error>
[src]
impl TryFrom<Place> for ObjectBox
[src]
Auto Trait Implementations
impl RefUnwindSafe for Place
impl Send for Place
impl Sync for Place
impl Unpin for Place
impl UnwindSafe for Place
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T, U> Extensible<U> for T where
T: Base,
U: Extension<T>,
[src]
T: Base,
U: Extension<T>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,