activitystreams/activitystreams-types/src/object/kind.rs

82 lines
2.6 KiB
Rust
Raw Normal View History

2018-05-12 20:14:43 +00:00
/*
2018-05-14 03:24:41 +00:00
* This file is part of ActivityStreams Types.
2018-05-12 20:14:43 +00:00
*
2020-03-10 19:55:15 +00:00
* Copyright © 2020 Riley Trautman
2018-05-12 20:14:43 +00:00
*
2018-05-14 03:24:41 +00:00
* ActivityStreams Types is free software: you can redistribute it and/or modify
2018-05-12 20:14:43 +00:00
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
2018-05-14 03:24:41 +00:00
* ActivityStreams Types is distributed in the hope that it will be useful,
2018-05-12 20:14:43 +00:00
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
2018-05-14 03:24:41 +00:00
* along with ActivityStreams Types. If not, see <http://www.gnu.org/licenses/>.
2018-05-12 20:14:43 +00:00
*/
2018-05-13 23:30:48 +00:00
//! Namespace for Unit Structs that serialize to strings
2019-10-28 23:18:12 +00:00
use activitystreams_derive::UnitString;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Article"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Article)]
pub struct ArticleType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Audio"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Audio)]
pub struct AudioType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Document"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Document)]
pub struct DocumentType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Event"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Event)]
pub struct EventType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Image"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Image)]
pub struct ImageType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Note"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Note)]
pub struct NoteType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Page"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Page)]
pub struct PageType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Place"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Place)]
pub struct PlaceType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Profile"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Profile)]
pub struct ProfileType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Relationship"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Relationship)]
pub struct RelationshipType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Tombstone"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Tombstone)]
pub struct TombstoneType;
2018-05-13 23:30:48 +00:00
/// A Unit Struct that represents the string "Video"
#[derive(Clone, Debug, Default, UnitString)]
#[activitystreams(Video)]
pub struct VideoType;