View Source Mobilizon.Federation.ActivityPub.Types.Managable protocol (Mobilizon v5.0.0-beta.1)
ActivityPub entity Managable protocol.
Summary
Functions
Deletes an entity and returns the activitystream representation for it
Updates a Managable
entity with the appropriate attributes and returns the updated entity and an activitystream representation for it
Types
@type t() :: term()
All the types that implement this protocol.
Functions
@spec delete( Mobilizon.Federation.ActivityPub.Types.Entity.t(), Mobilizon.Actors.Actor.t(), boolean(), map() ) :: {:ok, Mobilizon.Federation.ActivityStream.t(), Mobilizon.Actors.Actor.t(), Mobilizon.Federation.ActivityPub.Types.Entity.t()} | {:error, any()}
Deletes an entity and returns the activitystream representation for it
@spec update(Mobilizon.Federation.ActivityPub.Types.Entity.t(), map(), map()) :: {:ok, Mobilizon.Federation.ActivityPub.Types.Entity.t(), Mobilizon.Federation.ActivityStream.t()} | {:error, any()}
Updates a Managable
entity with the appropriate attributes and returns the updated entity and an activitystream representation for it