[][src]Trait activitystreams_new::activity::AsActivity

pub trait AsActivity<Kind>: Activity {
    fn activity_ref(&self) -> &Activity<Kind>;
fn activity_mut(&mut self) -> &mut Activity<Kind>; }

Implementation trait for deriving Activity methods for a type

Any type implementing AsObject will automatically gain methods provided by ActivityExt

Required methods

fn activity_ref(&self) -> &Activity<Kind>

Immutable borrow of Activity<Kind>

fn activity_mut(&mut self) -> &mut Activity<Kind>

Mutable borrow of Activity<Kind>

Loading content...

Implementors

impl AsActivity<ArriveType> for Arrive[src]

impl AsActivity<DeleteType> for Delete[src]

impl AsActivity<InviteType> for Invite[src]

impl AsActivity<QuestionType> for Question[src]

impl AsActivity<TravelType> for Travel[src]

impl<Inner, Kind> AsActivity<Kind> for ApObject<Inner> where
    Inner: AsActivity<Kind>, 
[src]

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

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

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

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

Loading content...