Module activitystreams::markers
source · Expand description
Marker traits for bounding methods
use activitystreams::{base::BaseExt, markers::Activity};
/// Applies the name "hi" to any given activity
fn manipulator<T>(mut some_type: T) -> T
where
T: Activity + BaseExt,
{
some_type.set_name("hi");
some_type
}
Traits
An Activity is a subtype of
Object
that describes some form of action that may happen, is
currently happening, or has already happened.Actor
types are Object
types that are capable of performing activities.The lowermost trait of the trait structure
A Collection is a subtype of
Object
that represents ordered or unordered sets of Object
or
Link
instances.Used to represent distinct subsets of items from a Collection.
Instances of
IntransitiveActivity
are a subtype of Activity
representing intransitive
actions.A Link is an indirect, qualified reference to a resource identified by a URL.
Describes an object of any kind.