Struct activitystreams::activity::Travel [−][src]
pub struct Travel { pub kind: TravelType, pub travel_props: ActorOptOriginAndTarget, pub object_props: ObjectProperties, pub activity_props: ActivityProperties, }
Indicates that the actor is traveling to target from origin.
Travel is an IntransitiveObject whose actor specifies the direct object. If the target or origin are not specified, either can be determined by context.
Fields
kind: TravelType
travel_props: ActorOptOriginAndTarget
Adds all valid travel properties to this struct
object_props: ObjectProperties
Adds all valid object properties to this struct
activity_props: ActivityProperties
Adds all valid activity properties to this struct
Trait Implementations
impl Activity for Travel
[src]
impl Activity for Travel
impl<'de> Deserialize<'de> for Travel
[src]
impl<'de> Deserialize<'de> for Travel
fn deserialize<__D>(
__deserializer: __D
) -> Result<Travel, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<Travel, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl IntransitiveActivity for Travel
[src]
impl IntransitiveActivity for Travel
impl ActivityExt for Travel
[src]
impl ActivityExt for Travel
fn props(&self) -> &ActivityProperties
[src]
fn props(&self) -> &ActivityProperties
fn props_mut(&mut self) -> &mut ActivityProperties
[src]
fn props_mut(&mut self) -> &mut ActivityProperties
impl Clone for Travel
[src]
impl Clone for Travel
fn clone(&self) -> Travel
[src]
fn clone(&self) -> Travel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for Travel
[src]
impl Default for Travel
impl Debug for Travel
[src]
impl Debug for Travel
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter. Read more
impl ObjectExt for Travel
[src]
impl ObjectExt for Travel
fn props(&self) -> &ObjectProperties
[src]
fn props(&self) -> &ObjectProperties
fn props_mut(&mut self) -> &mut ObjectProperties
[src]
fn props_mut(&mut self) -> &mut ObjectProperties
impl Object for Travel
[src]
impl Object for Travel
impl Serialize for Travel
[src]
impl Serialize for Travel
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more