Trait activitystreams::actor::AsApActor
source · pub trait AsApActor: Actor {
type Inner;
fn ap_actor_ref(&self) -> &ApActor<Self::Inner>;
fn ap_actor_mut(&mut self) -> &mut ApActor<Self::Inner>;
}
Expand description
Implementation trait for deriving ActivityPub Actor methods for a type
Any type implementing AsObject will automatically gain methods provided by ApActorExt
Required Associated Types§
Required Methods§
sourcefn ap_actor_ref(&self) -> &ApActor<Self::Inner>
fn ap_actor_ref(&self) -> &ApActor<Self::Inner>
Immutable borrow of ApActor<Inner>
sourcefn ap_actor_mut(&mut self) -> &mut ApActor<Self::Inner>
fn ap_actor_mut(&mut self) -> &mut ApActor<Self::Inner>
Mutable borrow of ApActor<Inner>