[][src]Struct activitystreams_new::activity::Activity

pub struct Activity<Kind> { /* fields omitted */ }

Activity objects are specializations of the base Object type that provide information about actions that have either already occurred, are in the process of occurring, or may occur in the future.


impl<Kind> Activity<Kind>[src]

pub fn new() -> Self where
    Kind: Default

Create a new Activity

use activitystreams_new::activity::Activity;

let activity = Activity::<String>::new();

Trait Implementations

impl<Kind> Activity for Activity<Kind>[src]

impl<Kind> AsActivity<Kind> for Activity<Kind>[src]

impl<Kind> AsBase<Kind> for Activity<Kind>[src]

impl<Kind> AsObject<Kind> for Activity<Kind>[src]

impl<Kind> Base for Activity<Kind>[src]

impl<Kind: Clone> Clone for Activity<Kind>[src]

impl<Kind: Debug> Debug for Activity<Kind>[src]

impl<'de, Kind> Deserialize<'de> for Activity<Kind> where
    Kind: Deserialize<'de>, 

impl<Kind> Extends<Kind> for Activity<Kind>[src]

type Error = Error

The erro produced must be a StdError

impl<Kind> Object for Activity<Kind>[src]

impl<Kind> Serialize for Activity<Kind> where
    Kind: Serialize

impl<Kind> TryFrom<Activity<Kind>> for Object<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> TryFrom<Object<Kind>> for Activity<Kind>[src]

type Error = Error

The type returned in the event of a conversion error.

impl<Kind> UnparsedMut for Activity<Kind>[src]

Auto Trait Implementations

impl<Kind> RefUnwindSafe for Activity<Kind> where
    Kind: RefUnwindSafe

impl<Kind> Send for Activity<Kind> where
    Kind: Send

impl<Kind> Sync for Activity<Kind> where
    Kind: Sync

impl<Kind> Unpin for Activity<Kind> where
    Kind: Unpin

impl<Kind> UnwindSafe for Activity<Kind> where
    Kind: UnwindSafe

Blanket Implementations

impl<T, Kind> ActivityExt<Kind> for T where
    T: AsActivity<Kind>, 

impl<T> Any for T where
    T: 'static + ?Sized

impl<T, Kind> BaseExt<Kind> for T where
    T: AsBase<Kind>, 

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 

impl<T, Kind> ExtendsExt<Kind> for T where
    T: Extends<Kind>,
    <T as Extends<Kind>>::Error: From<Error>, 

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

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, Kind> ObjectExt<Kind> for T where
    T: AsObject<Kind>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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