[][src]Module activitystreams::markers

Marker traits for bounding methods

use activitystreams::{base::BaseExt, markers::Activity};

/// Applies the name "hi" to any given activity
fn manipulator<T, Kind>(mut some_type: T) -> T
where
    T: Activity + BaseExt<Kind>,
{
    some_type.set_name("hi");

    some_type
}

Traits

Activity

An Activity is a subtype of Object that describes some form of action that may happen, is currently happening, or has already happened.

Actor

Actor types are Object types that are capable of performing activities.

Base

The lowermost trait of the trait structure

Collection

A Collection is a subtype of Object that represents ordered or unordered sets of Object or Link instances.

CollectionPage

Used to represent distinct subsets of items from a Collection.

IntransitiveActivity

Instances of IntransitiveActivity are a subtype of Activity representing intransitive actions.

Link

A Link is an indirect, qualified reference to a resource identified by a URL.

Object

Describes an object of any kind.