[−][src]Module activitystreams::object::properties
Namespace for properties of standard object types
To use these properties in your own types, you can flatten them into your struct with serde:
use activitystreams::{ ext::Ext, object::{ properties::ObjectProperties, Object, ObjectBox, }, Base, BaseBox, PropRefs, }; use std::collections::HashMap; #[derive(Clone, Debug, Default, serde::Serialize, serde::Deserialize)] #[serde(transparent)] pub struct MyProps(pub ObjectProperties); #[derive(Clone, Debug, Default, PropRefs, serde::Serialize, serde::Deserialize)] #[serde(rename_all = "camelCase")] #[prop_refs(Object)] pub struct MyObject { #[serde(rename = "type")] pub kind: String, /// Define a required property for the MyObject type pub my_property: String, #[serde(flatten)] #[prop_refs] pub extra: MyProps, }
Structs
ApObjectProperties | Define activitypub properties for the Object type as described by the Activity Pub vocabulary. |
ObjectProperties | Define all the properties of the Object base type as described by the Activity Streams vocabulary. |
PlaceProperties | Define all the properties of the Location type as described by the Activity Streams vocabulary. |
ProfileProperties | Define all the properties of the Profile type as described by the Activity Streams vocabulary. |
RelationshipProperties | Define all the properties of the Relationship type as described by the Activity Streams vocabulary. |
TombstoneProperties | Define all the properties of the Tombstone type as described by the Activity Streams vocabulary. |
Enums
ApObjectPropertiesSourceEnum | Variations for the |
ApObjectPropertiesUploadMediaEnum | Variations for the |
ObjectPropertiesAttachmentEnum | Non-Terminating variations for the |
ObjectPropertiesAttachmentTermEnum | Terminating variations for the |
ObjectPropertiesAttributedToEnum | Non-Terminating variations for the |
ObjectPropertiesAttributedToTermEnum | Terminating variations for the |
ObjectPropertiesAudienceEnum | Non-Terminating variations for the |
ObjectPropertiesAudienceTermEnum | Terminating variations for the |
ObjectPropertiesBccEnum | Non-Terminating variations for the |
ObjectPropertiesBccTermEnum | Terminating variations for the |
ObjectPropertiesBtoEnum | Non-Terminating variations for the |
ObjectPropertiesBtoTermEnum | Terminating variations for the |
ObjectPropertiesCcEnum | Non-Terminating variations for the |
ObjectPropertiesCcTermEnum | Terminating variations for the |
ObjectPropertiesContentEnum | Non-Terminating variations for the |
ObjectPropertiesContentTermEnum | Terminating variations for the |
ObjectPropertiesContextEnum | Non-Terminating variations for the |
ObjectPropertiesContextTermEnum | Terminating variations for the |
ObjectPropertiesGeneratorEnum | Non-Terminating variations for the |
ObjectPropertiesGeneratorTermEnum | Terminating variations for the |
ObjectPropertiesIconEnum | Non-Terminating variations for the |
ObjectPropertiesIconTermEnum | Terminating variations for the |
ObjectPropertiesImageEnum | Non-Terminating variations for the |
ObjectPropertiesImageTermEnum | Terminating variations for the |
ObjectPropertiesInReplyToEnum | Non-Terminating variations for the |
ObjectPropertiesInReplyToTermEnum | Terminating variations for the |
ObjectPropertiesLocationEnum | Non-Terminating variations for the |
ObjectPropertiesLocationTermEnum | Terminating variations for the |
ObjectPropertiesNameEnum | Non-Terminating variations for the |
ObjectPropertiesNameTermEnum | Terminating variations for the |
ObjectPropertiesPreviewEnum | Non-Terminating variations for the |
ObjectPropertiesPreviewTermEnum | Terminating variations for the |
ObjectPropertiesRepliesEnum | Non-Terminating variations for the |
ObjectPropertiesRepliesTermEnum | Terminating variations for the |
ObjectPropertiesSummaryEnum | Non-Terminating variations for the |
ObjectPropertiesSummaryTermEnum | Terminating variations for the |
ObjectPropertiesTagEnum | Non-Terminating variations for the |
ObjectPropertiesTagTermEnum | Terminating variations for the |
ObjectPropertiesToEnum | Non-Terminating variations for the |
ObjectPropertiesToTermEnum | Terminating variations for the |
ObjectPropertiesUrlEnum | Non-Terminating variations for the |
ObjectPropertiesUrlTermEnum | Terminating variations for the |
PlacePropertiesUnitsEnum | Variations for the |
ProfilePropertiesDescribesEnum | Variations for the |
RelationshipPropertiesObjectEnum | Non-Terminating variations for the |
RelationshipPropertiesObjectTermEnum | Terminating variations for the |
RelationshipPropertiesRelationshipEnum | Non-Terminating variations for the |
RelationshipPropertiesRelationshipTermEnum | Terminating variations for the |
RelationshipPropertiesSubjectEnum | Variations for the |
TombstonePropertiesFormerTypeEnum | Non-Terminating variations for the |
TombstonePropertiesFormerTypeTermEnum | Terminating variations for the |