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

Enums§

Traits§