From 6e707a6ca540b83fd6145033f9a44ba8ac7c2269 Mon Sep 17 00:00:00 2001 From: ljoonal <5854483+ljoonal@users.noreply.github.com> Date: Sun, 16 Apr 2023 05:35:08 +0300 Subject: [PATCH] Add serde derives for LoginError --- onlivfe/src/auth.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onlivfe/src/auth.rs b/onlivfe/src/auth.rs index 7c13bed..3490c7b 100644 --- a/onlivfe/src/auth.rs +++ b/onlivfe/src/auth.rs @@ -1,7 +1,10 @@ +use serde::{Deserialize, Serialize}; + use crate::PlatformAccountId; /// An error that occurred with the login -#[derive(Debug, Clone)] +#[derive(Debug, Clone, Serialize, Deserialize)] +#[serde(tag = "error", content = "data")] pub enum LoginError { /// An error occurred Error(String),