Crate apb

Source
Expand description

§apb

traits and types for implementing ActivityPub

The main type this crate exposes is the Node, which can be:

Nodes contain AP objects, which implement one or more traits (such as Object or Actor)

§features

  • unstructured: all traits are implemented for [serde_json::Value], so that it’s possible to manipulate free-form json maps as valid AP objects
  • orm: enum types are also database-friendly with sea-orm
  • fetch: Node exposes [Node::fetch] to dereference remote nodes

§structure

*: Actor is technically just an object, not really a “subtype”

**: PublicKey is introduced in ActivityPub, it’s not part of ActivityStream

Re-exports§

pub use field::Field;
pub use field::FieldErr;
pub use shortcuts::Shortcuts;

Modules§

field
shortcuts
target

Enums§

AcceptType
ActivityType
ActorType
BaseType
CollectionType
DocumentType
IgnoreType
IntransitiveActivityType
LinkType
Node
ActivityPub object node, representing either nothing, something, a link to something or multiple things
ObjectType
OfferType
RejectType

Traits§

Accept
AcceptMut
Activity
ActivityMut
Actor
ActorMut
Base
BaseMut
Collection
CollectionMut
CollectionPage
CollectionPageMut
Document
DocumentMut
Endpoints
EndpointsMut
Ignore
IgnoreMut
IntransitiveActivity
IntransitiveActivityMut
Link
LinkMut
Object
ObjectMut
Offer
OfferMut
Place
PlaceMut
Profile
PublicKey
PublicKeyMut
Reject
RejectMut
Relationship
RelationshipMut
Tombstone
TombstoneMut