activitystreams_types/activity/
mod.rs

1/*
2 * This file is part of ActivityStreams Types.
3 *
4 * Copyright © 2018 Riley Trautman
5 *
6 * ActivityStreams Types 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 Types 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 Types.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20mod accept;
21mod add;
22mod amove;
23mod announce;
24mod arrive;
25mod block;
26mod create;
27mod delete;
28mod dislike;
29mod flag;
30mod follow;
31mod ignore;
32mod invite;
33mod join;
34pub mod kind;
35mod leave;
36mod like;
37mod listen;
38mod offer;
39pub mod properties;
40mod question;
41mod read;
42mod reject;
43mod remove;
44mod tentative_accept;
45mod tentative_reject;
46mod travel;
47mod undo;
48mod update;
49mod view;
50
51pub use self::{
52    accept::*, add::*, amove::*, announce::*, arrive::*, block::*, create::*, delete::*,
53    dislike::*, flag::*, follow::*, ignore::*, invite::*, join::*, leave::*, like::*, listen::*,
54    offer::*, question::*, read::*, reject::*, remove::*, tentative_accept::*, tentative_reject::*,
55    travel::*, undo::*, update::*, view::*,
56};
57
58use activitystreams_traits::Activity;
59
60use self::properties::ActivityProperties;
61
62/// The Activity Extension Trait
63///
64/// This trait provides generic access to an activity's properties
65pub trait ActivityExt: Activity {
66    fn props(&self) -> &ActivityProperties;
67    fn props_mut(&mut self) -> &mut ActivityProperties;
68}