events: Add AssetType::Pin

This commit is contained in:
Kévin Commaille 2023-06-23 09:51:11 +02:00 committed by Kévin Commaille
parent d0f11f0075
commit 2b68cb6eec

View File

@ -178,6 +178,7 @@ impl AssetContent {
/// The type of an asset.
#[doc = include_str!(concat!(env!("CARGO_MANIFEST_DIR"), "/src/doc/string_enum.md"))]
#[derive(Clone, Default, PartialEq, Eq, PartialOrd, Ord, StringEnum)]
#[ruma_enum(rename_all = "m.snake_case")]
#[non_exhaustive]
pub enum AssetType {
/// The asset is the sender of the event.
@ -185,6 +186,9 @@ pub enum AssetType {
#[ruma_enum(rename = "m.self")]
Self_,
/// The asset is a location pinned by the sender.
Pin,
#[doc(hidden)]
_Custom(PrivOwnedStr),
}