[][src]Struct activitystreams::activity::Undo

pub struct Undo {
    pub kind: UndoType,
    pub undo_props: UndoProperties,
    pub object_props: ObjectProperties,
    pub activity_props: ActivityProperties,
}

Indicates that the actor is undoing the object.

In most cases, the object will be an Activity describing some previously performed action (for instance, a person may have previously "liked" an article but, for whatever reason, might choose to undo that like at some later point in time).

The target and origin typically have no defined meaning.

Fields

kind: UndoTypeundo_props: UndoProperties

Adds all valid undo 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

Methods

impl Undo[src]

pub fn full() -> Ext<Undo, ApObjectProperties>[src]

Generate a fully extended type

This effect can be achieved with Self::new().extend(SomeExtension::default())

impl Undo[src]

pub fn new() -> Self[src]

Create from default

Trait Implementations

impl Activity for Undo[src]

impl AsMut<ActivityProperties> for Undo[src]

impl AsMut<ActorAndObjectProperties> for Undo[src]

impl AsMut<ObjectProperties> for Undo[src]

impl AsRef<ActivityProperties> for Undo[src]

impl AsRef<ActorAndObjectProperties> for Undo[src]

impl AsRef<ObjectProperties> for Undo[src]

impl Base for Undo[src]

impl Clone for Undo[src]

impl Debug for Undo[src]

impl Default for Undo[src]

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

impl Object for Undo[src]

impl Serialize for Undo[src]

impl TryFrom<Undo> for BaseBox[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Undo> for ObjectBox[src]

type Error = Error

The type returned in the event of a conversion error.

impl TryFrom<Undo> for ActivityBox[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Undo

impl Send for Undo

impl Sync for Undo

impl Unpin for Undo

impl UnwindSafe for Undo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[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, U> Extensible<U> for T where
    T: Base,
    U: Extension<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.