[][src]Struct activitystreams::activity::Invite

pub struct Invite { /* fields omitted */ }

A specialization of Offer in which the actor is extending an invitation for the object to the target.

Implementations

impl Invite[src]

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

Create a new Invite Activity

use activitystreams::activity::Invite;

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

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

Deconstruct the Invite into its parts

use activitystreams::activity::Invite;

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

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

Trait Implementations

impl Activity for Invite[src]

impl ActorAndObjectRef for Invite[src]

impl AsActivity<InviteType> for Invite[src]

impl AsBase<InviteType> for Invite[src]

impl AsObject<InviteType> for Invite[src]

impl Base for Invite[src]

impl Clone for Invite[src]

impl Debug for Invite[src]

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

impl Extends<InviteType> for Invite[src]

type Error = Error

The erro produced must be a StdError

impl Object for Invite[src]

impl Serialize for Invite[src]

impl TargetRef for Invite[src]

impl TryFrom<Invite> for Object<InviteType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<InviteType>> for Invite[src]

type Error = Error

The type returned in the event of a conversion error.

impl UnparsedMut for Invite[src]

Auto Trait Implementations

impl RefUnwindSafe for Invite

impl Send for Invite

impl Sync for Invite

impl Unpin for Invite

impl UnwindSafe for Invite

Blanket Implementations

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

impl<T> ActorAndObjectRefExt for T where
    T: ActorAndObjectRef
[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> TargetRefExt for T where
    T: TargetRef
[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]