events: Make MediaSource an exhaustive enum
This commit is contained in:
parent
05ad164d21
commit
de565c9af9
@ -35,7 +35,7 @@ pub mod topic;
|
|||||||
|
|
||||||
/// The source of a media file.
|
/// The source of a media file.
|
||||||
#[derive(Clone, Debug, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[allow(clippy::exhaustive_enums)]
|
||||||
pub enum MediaSource {
|
pub enum MediaSource {
|
||||||
/// The MXC URI to the unencrypted media file.
|
/// The MXC URI to the unencrypted media file.
|
||||||
#[serde(rename = "url")]
|
#[serde(rename = "url")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user