Module traits

Source
Expand description

Traits used by activityrust.

It includes:

  • The traits necessaries in order to access objects properties
  • The traits used to serialize/deserialize some objects
  • Some macros used to generate properties

Modules§

dateserializer
Trait used to serialize/deserialize DateTime. This is because ActivityStream uses Strings, that are not always fully rfc3339 compatible
optionaldateserializer
Trait used to serialize/deserialize Option<DateTime>. This is because ActivityStream uses Strings, that are not always fully rfc3339 compatible
properties
Traits used in order to access object properties (Such as properties accessible for an Object, an Activity, an Actor…)
vecserializer
Trait used to serialize/deserialize Vec<T>. This is because in ActivityStream, arrays of size 1 are not always represented as an JSON array, but rather as an object