[][src]Trait activitystreams::activity::ActorAndObjectRef

pub trait ActorAndObjectRef: Activity {
    fn actor_field_ref(&self) -> &OneOrMany<AnyBase>;
fn object_field_ref(&self) -> &OneOrMany<AnyBase>;
fn actor_field_mut(&mut self) -> &mut OneOrMany<AnyBase>;
fn object_field_mut(&mut self) -> &mut OneOrMany<AnyBase>; }

Implementation trait for deriving Actor and Object methods for a type

Any type implementing ActorAndObjectRef will automatically gain methods provided by ActorAndObjectRefExt

Required methods

fn actor_field_ref(&self) -> &OneOrMany<AnyBase>

Immutable borrow of actor field

fn object_field_ref(&self) -> &OneOrMany<AnyBase>

Mutable borrow of actor field

fn actor_field_mut(&mut self) -> &mut OneOrMany<AnyBase>

Immutable borrow of object field

fn object_field_mut(&mut self) -> &mut OneOrMany<AnyBase>

Mutable borrow of object field

Loading content...

Implementors

impl ActorAndObjectRef for Delete[src]

impl ActorAndObjectRef for Invite[src]

impl<Inner> ActorAndObjectRef for ApObject<Inner> where
    Inner: ActorAndObjectRef
[src]

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

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

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

Loading content...