[][src]Struct activitystreams::activity::Arrive

pub struct Arrive { /* fields omitted */ }

An IntransitiveActivity that indicates that the actor has arrived at the location.

The origin can be used to identify the context from which the actor originated. The target typically has no defined meaning.

Implementations

impl Arrive[src]

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

Create a new Arrive Activity

use activitystreams::activity::Arrive;

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

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

Deconstruct the Arrive into its parts

use activitystreams::activity::Arrive;

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

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

Trait Implementations

impl Activity for Arrive[src]

impl AsActivity<ArriveType> for Arrive[src]

impl AsBase<ArriveType> for Arrive[src]

impl AsObject<ArriveType> for Arrive[src]

impl Base for Arrive[src]

impl Clone for Arrive[src]

impl Debug for Arrive[src]

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

impl Extends<ArriveType> for Arrive[src]

type Error = Error

The erro produced must be a StdError

impl IntransitiveActivity for Arrive[src]

impl Object for Arrive[src]

impl OriginRef for Arrive[src]

impl Serialize for Arrive[src]

impl TryFrom<Arrive> for Object<ArriveType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<ArriveType>> for Arrive[src]

type Error = Error

The type returned in the event of a conversion error.

impl UnparsedMut for Arrive[src]

Auto Trait Implementations

impl RefUnwindSafe for Arrive

impl Send for Arrive

impl Sync for Arrive

impl Unpin for Arrive

impl UnwindSafe for Arrive

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> OriginRefExt for T where
    T: OriginRef
[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]