From ee5aa3033586e1cfad22a4393cefc554e9af17ea Mon Sep 17 00:00:00 2001 From: h7x4 Date: Sun, 15 Dec 2024 16:21:25 +0100 Subject: [PATCH] core: mark `MpvDataType` as `serde(untagged)` --- src/core_api.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core_api.rs b/src/core_api.rs index ed3086d..87e3338 100644 --- a/src/core_api.rs +++ b/src/core_api.rs @@ -95,6 +95,7 @@ pub(crate) trait IntoRawCommandPart { /// Generic data type representing all possible data types that mpv can return. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] +#[serde(untagged)] pub enum MpvDataType { Array(Vec), Bool(bool),