[][src]Trait activitystreams_new::object::AsApObject

pub trait AsApObject<Inner>: Object {
    fn ap_object_ref(&self) -> &ApObject<Inner>;
fn ap_object_mut(&mut self) -> &mut ApObject<Inner>; }

Implementation trait for deriving ActivityPub Object methods for a type

Any type implementing AsApObject will automatically gain methods provided by ApObjectExt

Required methods

fn ap_object_ref(&self) -> &ApObject<Inner>

Immutable borrow of ApObject<Inner>

fn ap_object_mut(&mut self) -> &mut ApObject<Inner>

Mutable borrow of ApObject<Inner>

Loading content...


impl<Inner> AsApObject<Inner> for ApObject<Inner> where
    Inner: Object

impl<Inner1, Inner2> AsApObject<Inner2> for ApActor<Inner1> where
    Inner1: AsApObject<Inner2>, 

Loading content...