Skip to main content

activitystreams/activity/
kind.rs

1/*
2 * This file is part of ActivityStreams.
3 *
4 * Copyright © 2020 Riley Trautman
5 *
6 * ActivityStreams 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 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.  If not, see <http://www.gnu.org/licenses/>.
18 */
19
20//! Namespace for Unit Structs that serialize to strings
21
22use crate::UnitString;
23
24#[derive(Clone, Debug, Default, UnitString)]
25#[unit_string(Accept)]
26pub struct AcceptType;
27
28#[derive(Clone, Debug, Default, UnitString)]
29#[unit_string(Add)]
30pub struct AddType;
31
32#[derive(Clone, Debug, Default, UnitString)]
33#[unit_string(Move)]
34pub struct MoveType;
35
36#[derive(Clone, Debug, Default, UnitString)]
37#[unit_string(Announce)]
38pub struct AnnounceType;
39
40#[derive(Clone, Debug, Default, UnitString)]
41#[unit_string(Arrive)]
42pub struct ArriveType;
43
44#[derive(Clone, Debug, Default, UnitString)]
45#[unit_string(Block)]
46pub struct BlockType;
47
48#[derive(Clone, Debug, Default, UnitString)]
49#[unit_string(Create)]
50pub struct CreateType;
51
52#[derive(Clone, Debug, Default, UnitString)]
53#[unit_string(Delete)]
54pub struct DeleteType;
55
56#[derive(Clone, Debug, Default, UnitString)]
57#[unit_string(Dislike)]
58pub struct DislikeType;
59
60#[derive(Clone, Debug, Default, UnitString)]
61#[unit_string(Flag)]
62pub struct FlagType;
63
64#[derive(Clone, Debug, Default, UnitString)]
65#[unit_string(Follow)]
66pub struct FollowType;
67
68#[derive(Clone, Debug, Default, UnitString)]
69#[unit_string(Ignore)]
70pub struct IgnoreType;
71
72#[derive(Clone, Debug, Default, UnitString)]
73#[unit_string(Invite)]
74pub struct InviteType;
75
76#[derive(Clone, Debug, Default, UnitString)]
77#[unit_string(Join)]
78pub struct JoinType;
79
80#[derive(Clone, Debug, Default, UnitString)]
81#[unit_string(Leave)]
82pub struct LeaveType;
83
84#[derive(Clone, Debug, Default, UnitString)]
85#[unit_string(Like)]
86pub struct LikeType;
87
88#[derive(Clone, Debug, Default, UnitString)]
89#[unit_string(Listen)]
90pub struct ListenType;
91
92#[derive(Clone, Debug, Default, UnitString)]
93#[unit_string(Offer)]
94pub struct OfferType;
95
96#[derive(Clone, Debug, Default, UnitString)]
97#[unit_string(Question)]
98pub struct QuestionType;
99
100#[derive(Clone, Debug, Default, UnitString)]
101#[unit_string(Real)]
102pub struct ReadType;
103
104#[derive(Clone, Debug, Default, UnitString)]
105#[unit_string(Reject)]
106pub struct RejectType;
107
108#[derive(Clone, Debug, Default, UnitString)]
109#[unit_string(Remove)]
110pub struct RemoveType;
111
112#[derive(Clone, Debug, Default, UnitString)]
113#[unit_string(TentativeAccept)]
114pub struct TentativeAcceptType;
115
116#[derive(Clone, Debug, Default, UnitString)]
117#[unit_string(TentativeReject)]
118pub struct TentativeRejectType;
119
120#[derive(Clone, Debug, Default, UnitString)]
121#[unit_string(Travel)]
122pub struct TravelType;
123
124#[derive(Clone, Debug, Default, UnitString)]
125#[unit_string(Undo)]
126pub struct UndoType;
127
128#[derive(Clone, Debug, Default, UnitString)]
129#[unit_string(Update)]
130pub struct UpdateType;
131
132#[derive(Clone, Debug, Default, UnitString)]
133#[unit_string(View)]
134pub struct ViewType;