events: Add AssetType::Pin
This commit is contained in:
parent
d0f11f0075
commit
2b68cb6eec
@ -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),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user