activitystreams_traits/activity.rs
1/*
2 * This file is part of ActivityStreams Traits.
3 *
4 * Copyright © 2018 Riley Trautman
5 *
6 * ActivityStreams Traits is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * ActivityStreams Traits is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with ActivityStreams Traits. If not, see <http://www.gnu.org/licenses/>.
18 */
19
20use crate::object::Object;
21
22/// An Activity is a subtype of `Object` that describes some form of action that may happen, is
23/// currently happening, or has already happened.
24///
25/// The `Activity` type itself serves as an abstract base type for all types of activities. It is
26/// important to note that the `Activity` type itself does not carry any specific semantics about
27/// the kind of action being taken.
28pub trait Activity: Object {}
29
30/// Instances of `IntransitiveActivity` are a subtype of `Activity` representing intransitive
31/// actions.
32///
33/// The `object` property is therefore inappropriate for these activities.
34pub trait IntransitiveActivity: Activity {}