Expand description
The Activity Vocabulary, for Ojak.
Every ActivityStreams type and the extensions the fediverse uses, from
Fedify’s vocabulary schemas and Ojak’s own additions to them (see
schemas/ and extensions/), generated into generated and exported
here: ojak_vocab::Note, ojak_vocab::Follow, ojak_vocab::AnyObject.
A document is read by what it means: read normalises it over the
contexts Ojak ships and reads it into a type, and read_reporting says
what the type did not keep. write() writes a value in Ojak’s spelling,
under Ojak’s context.
This crate models protocol data only. It does not fetch, store, deliver, or decide anything.
Re-exports§
Modules§
- generated
- Vocabulary types generated from Fedify’s schemas.
- json
- Reading and writing the generated vocabulary types.
- loss
- What a typed value did not keep of the document it was read from.
- meaning
- What a post or a reaction means, where the fediverse says it more than one way.
Structs§
Enums§
- Read
Error - Why a document could not be read.
- Reference
- A value that is either an object’s IRI or the object itself.
Constants§
- ACTIVITYSTREAMS_
CONTEXT - The canonical Activity Streams JSON-LD context URL.
- ACTIVITYSTREAMS_
PUBLIC - The special collection addressing every actor (public posts).
Functions§
- is_
public_ collection - Whether
irinames the public collection, in any of the spellings compaction leaves it in: in full, asas:Public, or asPublic. Mastodon’sActivityPub::TagManager#public_collection?. - read
- Read a document from another server into a vocabulary type.
- read_
reporting read, and say what the value did not keep: seeRead::lost.- write
- Write a vocabulary value as a document: in Ojak’s spelling, under Ojak’s context.
- write_
with_ context - Write a vocabulary value as a document under
contextrather than Ojak’s: the plain ActivityStreams context, say, which is what Mastodon writes its activities under.@contextcomes first, wherever a map that keeps its keys in order writes them.
Type Aliases§
- Iri
- An absolute ActivityPub/ActivityStreams identifier.