Type alias docs

This commit is contained in:
asonix 2020-05-16 17:21:37 -05:00
parent cd35672dc1
commit 5dd87fc769

View file

@ -590,10 +590,34 @@ pub trait ApActorExt<Inner>: AsApActor<Inner> {
} }
} }
/// The ActivityStreams Application type
///
/// This is just an alias for `Object<ApplicationType>` because there's no fields inherent to
/// Application that aren't already present on an Object.
pub type Application = Object<ApplicationType>; pub type Application = Object<ApplicationType>;
/// The ActivityStreams Group type
///
/// This is just an alias for `Object<GroupType>` because there's no fields inherent to
/// Group that aren't already present on an Object.
pub type Group = Object<GroupType>; pub type Group = Object<GroupType>;
/// The ActivityStreams Organization type
///
/// This is just an alias for `Object<OrganizationType>` because there's no fields inherent to
/// Organization that aren't already present on an Object.
pub type Organization = Object<OrganizationType>; pub type Organization = Object<OrganizationType>;
/// The ActivityStreams Person type
///
/// This is just an alias for `Object<PersonType>` because there's no fields inherent to
/// Person that aren't already present on an Object.
pub type Person = Object<PersonType>; pub type Person = Object<PersonType>;
/// The ActivityStreams Service type
///
/// This is just an alias for `Object<ServiceType>` because there's no fields inherent to
/// Service that aren't already present on an Object.
pub type Service = Object<ServiceType>; pub type Service = Object<ServiceType>;
/// Define activitypub properties for the Actor type as described by the Activity Pub vocabulary. /// Define activitypub properties for the Actor type as described by the Activity Pub vocabulary.