Module activitypub::activity::properties [−][src]
Namespace for properties of standard Activity types
To use these properties in your own types, you can flatten them into your struct with serde:
extern crate activitystreams_traits; extern crate activitystreams_types; extern crate serde; #[macro_use] extern crate serde_derive; use activitystreams_traits::{Activity, Object}; use activitystreams_types::{ activity::properties::ActivityProperties, object::properties::ObjectProperties, }; #[derive(Clone, Debug, Serialize, Deserialize)] #[serde(rename_all = "camelCase")] pub struct MyActivity { #[serde(rename = "type")] pub kind: String, /// Define a require property for the MyActivity type pub my_property: String, #[serde(flatten)] pub object_properties: ObjectProperties, #[serde(flatten)] pub activity_properties: ActivityProperties, } impl Object for MyActivity {} impl Activity for MyActivity {}
Structs
ActivityProperties |
Activity objects are specializations of the base Object type that provide information about actions that have either already occurred, are in the process of occurring, or may occur in the future. |
ActorAndObject |
Struct with |
ActorAndObjectOptOrigin |
Struct with |
ActorAndObjectOptOthers |
Struct with |
ActorAndObjectOptTarget |
Struct with |
ActorAndOrigin |
Struct with |
ActorObjectAndTarget |
Struct with |
ActorOptOriginAndTarget |
Struct with |
QuestionProperties |
Properties for the Question activity |
Type Definitions
AcceptProperties |
Properties for the Accept activity |
AddProperties |
Properties for the Add activity |
AnnounceProperties |
Properties for the Announce activity |
ArriveProperties |
Properties for the Arrive activity |
BlockProperties |
Properties for the Block activity |
CreateProperties |
Properties for the Create activity |
DeleteProperties |
Properties for the Delete activity |
DislikeProperties |
Properties for the Dislike activity |
FlagProperties |
Properties for the Flag activity |
FollowProperties |
Properties for the Follow activity |
IgnoreProperties |
Properties for the Ignore activity |
InviteProperties |
Properties for the Invite activity |
JoinProperties |
Properties for the Join activity |
LeaveProperties |
Properties for the Leave activity |
LikeProperties |
Properties for the Like activity |
ListenProperties |
Properties for the Listen activity |
MoveProperties |
Properties for the Move activity |
OfferProperties |
Properties for the Offer activity |
ReadProperties |
Properties for the Read activity |
RejectProperties |
Properties for the Reject activity |
RemoveProperties |
Properties for the Remove activity |
TentativeAcceptProperties |
Properties for the TentativeAccept activity |
TentativeRejectProperties |
Properties for the TentativeReject activity |
TravelProperties |
Properties for the Travel activity |
UndoProperties |
Properties for the Undo activity |
UpdateProperties |
Properties for the Update activity |
ViewProperties |
Properties for the View activity |