From 5dd87fc769afdc2eed3a98f6555bc55ed31b35ba Mon Sep 17 00:00:00 2001 From: asonix Date: Sat, 16 May 2020 17:21:37 -0500 Subject: [PATCH] Type alias docs --- src/actor.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/actor.rs b/src/actor.rs index 1b07fa9..dcfa9d3 100644 --- a/src/actor.rs +++ b/src/actor.rs @@ -590,10 +590,34 @@ pub trait ApActorExt: AsApActor { } } +/// The ActivityStreams Application type +/// +/// This is just an alias for `Object` because there's no fields inherent to +/// Application that aren't already present on an Object. pub type Application = Object; + +/// The ActivityStreams Group type +/// +/// This is just an alias for `Object` because there's no fields inherent to +/// Group that aren't already present on an Object. pub type Group = Object; + +/// The ActivityStreams Organization type +/// +/// This is just an alias for `Object` because there's no fields inherent to +/// Organization that aren't already present on an Object. pub type Organization = Object; + +/// The ActivityStreams Person type +/// +/// This is just an alias for `Object` because there's no fields inherent to +/// Person that aren't already present on an Object. pub type Person = Object; + +/// The ActivityStreams Service type +/// +/// This is just an alias for `Object` because there's no fields inherent to +/// Service that aren't already present on an Object. pub type Service = Object; /// Define activitypub properties for the Actor type as described by the Activity Pub vocabulary.