[][src]Module activitystreams_new::activity

Types and traits for dealing with Activity attributes

use activitystreams_new::{
    activity::Create,
    context,
    prelude::*,
    uri,
};

let mut create = Create::new(
    uri!("https://example.com/actors/abcd"),
    uri!("https://example.com/notes/1234"),
);

create
    .set_result(uri!("https://example.com/"))
    .set_instrument(uri!("https://example.com/"))
    .set_id(uri!("https://example.com/activities/abcd"))
    .set_context(context());

Modules

kind

Kinds of activities defined by the spec

Structs

Activity

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

Activity with actor and object properties

ActorAndObjectOptOriginAndTarget

Activity with actor, object, and optional origin and target properties

ActorAndObjectOptTarget

Activity with actor, object, and optional target properties

Arrive

An IntransitiveActivity that indicates that the actor has arrived at the location.

Delete

Indicates that the actor has deleted the object.

Invite

A specialization of Offer in which the actor is extending an invitation for the object to the target.

Question

Represents a question being asked.

Travel

Indicates that the actor is traveling to target from origin.

Traits

ActivityExt

Helper methods for interacting with Activity types

ActorAndObjectRef

Implementation trait for deriving Actor and Object methods for a type

ActorAndObjectRefExt

Helper methods for interacting with Activity types with actor and object fields

AsActivity

Implementation trait for deriving Activity methods for a type

AsQuestion

Implementation trait for deriving Question methods for a type

OptOriginRef

Implementation trait for deriving Origin methods for a type

OptOriginRefExt

Helper methods for interacting with Activity types with an optional origin field

OptTargetRef

Implementation trait for deriving Target methods for a type

OptTargetRefExt

Helper methods for interacting with Activity types with an optional target field

OriginRef

Implementation trait for deriving Origin methods for a type

OriginRefExt

Helper methods for interacting with Activity types with an origin

QuestionExt

Helper methods for interacting with Question types

TargetRef

Implementation trait for deriving Target methods for a type

TargetRefExt

Helper methods for interacting with Activity types with a target field

Type Definitions

Accept

Indicates that the actor accepts the object.

Add

Indicates that the actor has added the object to the target.

Announce

Indicates that the actor is calling the target's attention the object.

Block

Indicates that the actor is blocking the object.

Create

Indicates that the actor has created the object.

Dislike

Indicates that the actor dislikes the object.

Flag

Indicates that the actor is "flagging" the object.

Follow

Indicates that the actor is "following" the object.

Ignore

Indicates that the actor is ignoring the object.

Join

Indicates that the actor has joined the object.

Leave

Indicates that the actor has left the object.

Like

Indicates that the actor likes, recommends or endorses the object.

Listen

Indicates that the actor has listened to the object.

Move

Indicates that the actor has moved object from origin to target.

Offer

Indicates that the actor is offering the object.

Read

Indicates that the actor has read the object.

Reject

Indicates that the actor is rejecting the object.

Remove

Indicates that the actor is removing the object.

TentativeAccept

A specialization of Accept indicating that the acceptance is tentative.

TentativeReject

A specialization of Reject in which the rejection is considered tentative.

Undo

Indicates that the actor is undoing the object.

Update

Indicates that the actor has updated the object.

View

Indicates that the actor has viewed the object.