[][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 source field from ApObjectProperties

ApObjectPropertiesUploadMediaEnum

Variations for the upload_media field from `ApObjectProperties

ObjectPropertiesAttachmentEnum

Non-Terminating variations for the attachment field from ObjectProperties

ObjectPropertiesAttachmentTermEnum

Terminating variations for the attachment field from ObjectProperties

ObjectPropertiesAttributedToEnum

Non-Terminating variations for the attributed_to field from ObjectProperties

ObjectPropertiesAttributedToTermEnum

Terminating variations for the attributed_to field from ObjectProperties

ObjectPropertiesAudienceEnum

Non-Terminating variations for the audience field from ObjectProperties

ObjectPropertiesAudienceTermEnum

Terminating variations for the audience field from ObjectProperties

ObjectPropertiesBccEnum

Non-Terminating variations for the bcc field from ObjectProperties

ObjectPropertiesBccTermEnum

Terminating variations for the bcc field from ObjectProperties

ObjectPropertiesBtoEnum

Non-Terminating variations for the bto field from ObjectProperties

ObjectPropertiesBtoTermEnum

Terminating variations for the bto field from ObjectProperties

ObjectPropertiesCcEnum

Non-Terminating variations for the cc field from ObjectProperties

ObjectPropertiesCcTermEnum

Terminating variations for the cc field from ObjectProperties

ObjectPropertiesContentEnum

Non-Terminating variations for the content field from ObjectProperties

ObjectPropertiesContentTermEnum

Terminating variations for the content field from ObjectProperties

ObjectPropertiesContextEnum

Non-Terminating variations for the context field from ObjectProperties

ObjectPropertiesContextTermEnum

Terminating variations for the context field from ObjectProperties

ObjectPropertiesGeneratorEnum

Non-Terminating variations for the generator field from ObjectProperties

ObjectPropertiesGeneratorTermEnum

Terminating variations for the generator field from ObjectProperties

ObjectPropertiesIconEnum

Non-Terminating variations for the icon field from ObjectProperties

ObjectPropertiesIconTermEnum

Terminating variations for the icon field from ObjectProperties

ObjectPropertiesImageEnum

Non-Terminating variations for the image field from ObjectProperties

ObjectPropertiesImageTermEnum

Terminating variations for the image field from ObjectProperties

ObjectPropertiesInReplyToEnum

Non-Terminating variations for the in_reply_to field from ObjectProperties

ObjectPropertiesInReplyToTermEnum

Terminating variations for the in_reply_to field from ObjectProperties

ObjectPropertiesLocationEnum

Non-Terminating variations for the location field from ObjectProperties

ObjectPropertiesLocationTermEnum

Terminating variations for the location field from ObjectProperties

ObjectPropertiesNameEnum

Non-Terminating variations for the name field from ObjectProperties

ObjectPropertiesNameTermEnum

Terminating variations for the name field from ObjectProperties

ObjectPropertiesPreviewEnum

Non-Terminating variations for the preview field from ObjectProperties

ObjectPropertiesPreviewTermEnum

Terminating variations for the preview field from ObjectProperties

ObjectPropertiesRepliesEnum

Non-Terminating variations for the replies field from ObjectProperties

ObjectPropertiesRepliesTermEnum

Terminating variations for the replies field from ObjectProperties

ObjectPropertiesSummaryEnum

Non-Terminating variations for the summary field from ObjectProperties

ObjectPropertiesSummaryTermEnum

Terminating variations for the summary field from ObjectProperties

ObjectPropertiesTagEnum

Non-Terminating variations for the tag field from ObjectProperties

ObjectPropertiesTagTermEnum

Terminating variations for the tag field from ObjectProperties

ObjectPropertiesToEnum

Non-Terminating variations for the to field from ObjectProperties

ObjectPropertiesToTermEnum

Terminating variations for the to field from ObjectProperties

ObjectPropertiesUrlEnum

Non-Terminating variations for the url field from ObjectProperties

ObjectPropertiesUrlTermEnum

Terminating variations for the url field from ObjectProperties

PlacePropertiesUnitsEnum

Variations for the units field from PlaceProperties

ProfilePropertiesDescribesEnum

Variations for the describes field from ProfileProperties

RelationshipPropertiesObjectEnum

Non-Terminating variations for the object field from RelationshipProperties

RelationshipPropertiesObjectTermEnum

Terminating variations for the object field from RelationshipProperties

RelationshipPropertiesRelationshipEnum

Non-Terminating variations for the relationship field from RelationshipProperties

RelationshipPropertiesRelationshipTermEnum

Terminating variations for the relationship field from RelationshipProperties

RelationshipPropertiesSubjectEnum

Variations for the subject field from RelationshipProperties

TombstonePropertiesFormerTypeEnum

Non-Terminating variations for the former_type field from TombstoneProperties

TombstonePropertiesFormerTypeTermEnum

Terminating variations for the former_type field from TombstoneProperties