[−][src]Module activitystreams::collection::properties
Namespace for properties of standard collection types
To use these properties in your own types, you can flatten them into your struct with serde:
use activitystreams::{ collection::properties::CollectionProperties, object::properties::ObjectProperties, Collection, Object, PropRefs, }; use serde::{Deserialize, Serialize}; use std::any::Any; #[derive(Clone, Debug, Serialize, Deserialize, PropRefs)] #[serde(rename_all = "camelCase")] pub struct MyCollection { #[serde(rename = "type")] pub kind: String, /// Define a require property for the MyCollection type pub my_property: String, #[serde(flatten)] #[activitystreams(Object)] pub object_properties: ObjectProperties, #[serde(flatten)] #[activitystreams(Collection)] pub collection_properties: CollectionProperties, }
Structs
CollectionPageProperties | The |
CollectionProperties |
|
OrderedCollectionPageProperties | The OrderedCollectionPage type MAY be used to identify a page whose items are strictly ordered. |
Enums
CollectionPagePropertiesNextEnum | Variations for the |
CollectionPagePropertiesPartOfEnum | Variations for the |
CollectionPagePropertiesPrevEnum | Variations for the |
CollectionPropertiesCurrentEnum | Variations for the |
CollectionPropertiesFirstEnum | Variations for the |
CollectionPropertiesItemsEnum | Non-Terminating variations for the |
CollectionPropertiesItemsTermEnum | Terminating variations for the |
CollectionPropertiesLastEnum | Non-Terminating variations for the |
CollectionPropertiesLastTermEnum | Terminating variations for the |