Type alias docs
This commit is contained in:
parent
cd35672dc1
commit
5dd87fc769
1 changed files with 24 additions and 0 deletions
24
src/actor.rs
24
src/actor.rs
|
@ -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.
|
||||||
|
|
Loading…
Reference in a new issue