[][src]Module activitystreams::object

Types and traits for dealing with Object attributes

use activitystreams::{
    object::Image,
    prelude::*,
    uri,
};

let mut image = Image::new();

image
    .set_url(uri!("https://example.com/image.png"))
    .set_attributed_to(uri!("https://example.com/actor"))
    .set_generator(uri!("https://example.com/image-generator"))
    .set_icon(uri!("https://example.com/icon.png"));

Modules

kind

Kinds of objects defined by the spec

Structs

ApObject

Define activitypub properties for the Object type as described by the Activity Pub vocabulary.

Object

Describes an object of any kind.

Place

Represents a logical or physical location.

Profile

A Profile is a content object that describes another Object, typically used to describe Actor Type objects.

Relationship

Describes a relationship between two individuals.

Tombstone

A Tombstone represents a content object that has been deleted.

Traits

ApObjectExt

Helper methods for interacting with ActivityPub Object types

AsApObject

Implementation trait for deriving ActivityPub Object methods for a type

AsObject

Implementation trait for deriving Object methods for a type

AsPlace

Implementation trait for deriving Place methods for a type

AsProfile

Implementation trait for deriving Profile methods for a type

AsRelationship

Implementation trait for deriving Relationship methods for a type

AsTombstone

Implementation trait for deriving Tombstone methods for a type

ObjectExt

Helper methods for interacting with Object types

PlaceExt

Helper methods for interacting with Place types

ProfileExt

Helper methods for interacting with Profile types

RelationshipExt

Helper methods for interacting with Relationship types

TombstoneExt

Helper methods for interacting with Tombstone types

Type Definitions

Article

Represents any kind of multi-paragraph written work.

Audio

Represents an audio document of any kind.

Document

Represents a document of any kind.

Event

Represents any kind of event.

Image

An image document of any kind.

Note

Represents a short written work typically less than a single paragraph in length.

Page

Represents a Web Page.

Video

Represents a video document of any kind.