[][src]Struct activitystreams::activity::Travel

pub struct Travel { /* fields omitted */ }

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.

Implementations

impl Travel[src]

pub fn new<T>(actor: T) -> Self where
    T: Into<OneOrMany<AnyBase>>, 
[src]

Create a new Travel Activity

use activitystreams::activity::Travel;

let activity = Travel::new(vec![]);

pub fn into_parts(
    self
) -> (OneOrMany<AnyBase>, Option<OneOrMany<AnyBase>>, Option<OneOrMany<AnyBase>>, Activity<TravelType>)
[src]

Deconstruct the Travel into its parts

use activitystreams::activity::Travel;

let activity = Travel::new(vec![]);

let (actor, origin, target, activity) = activity.into_parts();

Trait Implementations

impl Activity for Travel[src]

impl AsActivity<TravelType> for Travel[src]

impl AsBase<TravelType> for Travel[src]

impl AsObject<TravelType> for Travel[src]

impl Base for Travel[src]

impl Clone for Travel[src]

impl Debug for Travel[src]

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

impl Extends<TravelType> for Travel[src]

type Error = Error

The erro produced must be a StdError

impl IntransitiveActivity for Travel[src]

impl Object for Travel[src]

impl OptOriginRef for Travel[src]

impl OptTargetRef for Travel[src]

impl Serialize for Travel[src]

impl TryFrom<Object<TravelType>> for Travel[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Travel> for Object<TravelType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl UnparsedMut for Travel[src]

Auto Trait Implementations

impl RefUnwindSafe for Travel

impl Send for Travel

impl Sync for Travel

impl Unpin for Travel

impl UnwindSafe for Travel

Blanket Implementations

impl<T, Kind> ActivityExt<Kind> for T where
    T: AsActivity<Kind>, 
[src]

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> 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> OptOriginRefExt for T where
    T: OptOriginRef
[src]

impl<T> OptTargetRefExt for T where
    T: OptTargetRef
[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]