Trait activitypub::Collection [−][src]
pub trait Collection: Object { }
A Collection is a subtype of Object
that represents ordered or unordered sets of Object
or
Link
instances.
The items within a Collection can be ordered or unordered. The OrderedCollection type MAY be used to identify a Collection whose items are always ordered. In the JSON serialization, the unordered items of a Collection are represented using the items property while ordered items are represented using the orderedItems property.
UnorderedCollection
and OrderedCollection
types are provided by the activitystreams-types
crate.
Implementations on Foreign Types
impl Collection for UnorderedCollection
[src]
impl Collection for UnorderedCollection
impl Collection for OrderedCollection
[src]
impl Collection for OrderedCollection
impl Collection for OrderedCollectionPage
[src]
impl Collection for OrderedCollectionPage
impl Collection for UnorderedCollectionPage
[src]
impl Collection for UnorderedCollectionPage
Implementors
impl<C, O> Collection for CustomObject<C, O> where
C: DeserializeOwned + Serialize,
O: Collection,impl Collection for activitypub::collection::UnorderedCollection
impl Collection for activitypub::collection::UnorderedCollectionPage
impl Collection for activitypub::collection::OrderedCollection
impl Collection for activitypub::collection::OrderedCollectionPage