[][src]Struct activitystreams::object::Place

pub struct Place { /* fields omitted */ }

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.

Implementations

impl Place[src]

pub fn new() -> Self[src]

Create a new ActivityPub Object

use activitystreams::object::Place;

let object = Place::new();

Trait Implementations

impl AsBase<PlaceType> for Place[src]

impl AsObject<PlaceType> for Place[src]

impl AsPlace for Place[src]

impl Base for Place[src]

impl Clone for Place[src]

impl Debug for Place[src]

impl<'de> Deserialize<'de> for Place[src]

impl Extends<PlaceType> for Place[src]

type Error = Error

The erro produced must be a StdError

impl Object for Place[src]

impl Serialize for Place[src]

impl TryFrom<Object<PlaceType>> for Place[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Place> for Object<PlaceType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl UnparsedMut for Place[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]

impl<T, Kind> BaseExt<Kind> for T where
    T: AsBase<Kind>, 
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T, Kind> ExtendsExt<Kind> for T where
    T: Extends<Kind>,
    <T as Extends<Kind>>::Error: From<Error>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, Kind> ObjectExt<Kind> for T where
    T: AsObject<Kind>, 
[src]

impl<T> PlaceExt for T where
    T: AsPlace
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnparsedMutExt for T where
    T: UnparsedMut
[src]