[][src]Struct activitystreams::activity::Delete

pub struct Delete { /* fields omitted */ }

Indicates that the actor has deleted the object.

If specified, the origin indicates the context from which the object was deleted.

Implementations

impl Delete[src]

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

Create a new Delete Activity

use activitystreams::activity::Delete;

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

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

Deconstruct the Delete into its parts

use activitystreams::activity::Delete;

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

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

Trait Implementations

impl Activity for Delete[src]

impl ActorAndObjectRef for Delete[src]

impl AsActivity<DeleteType> for Delete[src]

impl AsBase<DeleteType> for Delete[src]

impl AsObject<DeleteType> for Delete[src]

impl Base for Delete[src]

impl Clone for Delete[src]

impl Debug for Delete[src]

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

impl Extends<DeleteType> for Delete[src]

type Error = Error

The erro produced must be a StdError

impl Object for Delete[src]

impl OptOriginRef for Delete[src]

impl Serialize for Delete[src]

impl TryFrom<Delete> for Object<DeleteType>[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Object<DeleteType>> for Delete[src]

type Error = Error

The type returned in the event of a conversion error.

impl UnparsedMut for Delete[src]

Auto Trait Implementations

impl RefUnwindSafe for Delete

impl Send for Delete

impl Sync for Delete

impl Unpin for Delete

impl UnwindSafe for Delete

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