Struct activitystreams_types::object::properties::PlaceProperties[][src]

pub struct PlaceProperties {
    pub accuracy: Option<Value>,
    pub altitude: Option<Value>,
    pub latitude: Option<Value>,
    pub longitude: Option<Value>,
    pub radius: Option<Value>,
    pub units: Option<Value>,
}

Define all the properties of the Location type as described by the Activity Streams vocabulary.

Fields

Indicates the accuracy of position coordinates on a Place objects.

Expressed in properties of percentage. e.g. "94.0" means "94.0% accurate".

  • Range: xsd:float [>= 0.0f, <= 100.0f]
  • Functional: true

Indicates the altitude of a place. The measurement units is indicated using the units property.

If units is not specified, the default is assumed to be "m" indicating meters.

  • Range: xsd:float
  • Functional: true

The latitude of a place.

  • Range: xsd:float
  • Functional: true

The longitude of a place.

  • Range: xsd:float
  • Functional: true

The radius from the given latitude and longitude for a Place.

The units is expressed by the units property. If units is not specified, the default is assumed to be "m" indicating "meters".

  • Range: xsd:float
  • Functional: true

Specifies the measurement units for the radius and altitude properties on a Place object.

If not specified, the default is assumed to be "m" for "meters".

  • Range: xsd:float
  • Functional: true

Methods

impl PlaceProperties
[src]

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Retrieve a value from the given struct

This method deserializes the item from JSON, so be wary of using this a lot.

Possible errors from this method are Error::NotFound and Error::Deserialize

Set a value in the given struct

This method serializes the item to JSON, so be wary of using this a lot.

Possible errors from this method are Error::Serialize

Trait Implementations

impl Clone for PlaceProperties
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for PlaceProperties
[src]

Formats the value using the given formatter. Read more

impl Default for PlaceProperties
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations