fedimovies/src/activitypub/vocabulary.rs

43 lines
1.3 KiB
Rust
Raw Normal View History

2021-11-12 14:51:03 +00:00
/// https://www.w3.org/TR/activitystreams-vocabulary/
2021-04-09 00:22:17 +00:00
// Activity types
pub const ACCEPT: &str = "Accept";
2022-07-13 21:38:01 +00:00
pub const ADD: &str = "Add";
pub const ANNOUNCE: &str = "Announce";
2021-04-09 00:22:17 +00:00
pub const CREATE: &str = "Create";
2021-11-12 14:51:03 +00:00
pub const DELETE: &str = "Delete";
pub const EMOJI_REACT: &str = "EmojiReact";
2021-04-09 00:22:17 +00:00
pub const FOLLOW: &str = "Follow";
2021-10-29 19:21:26 +00:00
pub const LIKE: &str = "Like";
pub const MOVE: &str = "Move";
pub const QUESTION: &str = "Question";
pub const REJECT: &str = "Reject";
pub const REMOVE: &str = "Remove";
2021-04-09 00:22:17 +00:00
pub const UNDO: &str = "Undo";
pub const UPDATE: &str = "Update";
// Actor types
pub const PERSON: &str = "Person";
2021-11-18 00:51:56 +00:00
pub const SERVICE: &str = "Service";
2021-04-09 00:22:17 +00:00
// Object types
pub const ARTICLE: &str = "Article";
2021-04-09 00:22:17 +00:00
pub const DOCUMENT: &str = "Document";
pub const EVENT: &str = "Event";
2021-04-09 00:22:17 +00:00
pub const IMAGE: &str = "Image";
2021-11-11 21:51:47 +00:00
pub const MENTION: &str = "Mention";
2021-04-09 00:22:17 +00:00
pub const NOTE: &str = "Note";
pub const PAGE: &str = "Page";
2021-12-04 00:42:36 +00:00
pub const TOMBSTONE: &str = "Tombstone";
pub const VIDEO: &str = "Video";
2021-09-22 16:32:44 +00:00
2021-12-23 00:32:00 +00:00
// Collections
pub const ORDERED_COLLECTION: &str = "OrderedCollection";
2021-12-23 21:51:01 +00:00
pub const ORDERED_COLLECTION_PAGE: &str = "OrderedCollectionPage";
2021-12-23 00:32:00 +00:00
2021-09-22 16:32:44 +00:00
// Misc
2021-12-07 23:28:58 +00:00
pub const HASHTAG: &str = "Hashtag";
pub const IDENTITY_PROOF: &str = "IdentityProof";
pub const LINK: &str = "Link";
2021-09-17 12:36:24 +00:00
pub const PROPERTY_VALUE: &str = "PropertyValue";