activitystreams_types/object/
kind.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
20//! Namespace for Unit Structs that serialize to strings
21use activitystreams_derive::UnitString;
22
23/// A Unit Struct that represents the string "Article"
24#[derive(Clone, Debug, Default, UnitString)]
25#[activitystreams(Article)]
26pub struct ArticleType;
27
28/// A Unit Struct that represents the string "Audio"
29#[derive(Clone, Debug, Default, UnitString)]
30#[activitystreams(Audio)]
31pub struct AudioType;
32
33/// A Unit Struct that represents the string "Document"
34#[derive(Clone, Debug, Default, UnitString)]
35#[activitystreams(Document)]
36pub struct DocumentType;
37
38/// A Unit Struct that represents the string "Event"
39#[derive(Clone, Debug, Default, UnitString)]
40#[activitystreams(Event)]
41pub struct EventType;
42
43/// A Unit Struct that represents the string "Image"
44#[derive(Clone, Debug, Default, UnitString)]
45#[activitystreams(Image)]
46pub struct ImageType;
47
48/// A Unit Struct that represents the string "Note"
49#[derive(Clone, Debug, Default, UnitString)]
50#[activitystreams(Note)]
51pub struct NoteType;
52
53/// A Unit Struct that represents the string "Page"
54#[derive(Clone, Debug, Default, UnitString)]
55#[activitystreams(Page)]
56pub struct PageType;
57
58/// A Unit Struct that represents the string "Place"
59#[derive(Clone, Debug, Default, UnitString)]
60#[activitystreams(Place)]
61pub struct PlaceType;
62
63/// A Unit Struct that represents the string "Profile"
64#[derive(Clone, Debug, Default, UnitString)]
65#[activitystreams(Profile)]
66pub struct ProfileType;
67
68/// A Unit Struct that represents the string "Relationship"
69#[derive(Clone, Debug, Default, UnitString)]
70#[activitystreams(Relationship)]
71pub struct RelationshipType;
72
73/// A Unit Struct that represents the string "Tombstone"
74#[derive(Clone, Debug, Default, UnitString)]
75#[activitystreams(Tombstone)]
76pub struct TombstoneType;
77
78/// A Unit Struct that represents the string "Video"
79#[derive(Clone, Debug, Default, UnitString)]
80#[activitystreams(Video)]
81pub struct VideoType;