From f36084df856b0fc3933afe3a9f376c9ccc11a98c Mon Sep 17 00:00:00 2001 From: Flaise Date: Fri, 2 Aug 2019 16:06:04 -0500 Subject: Implemented Serialize, Deserialize and other common traits where appropriate --- src/error.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/error.rs') diff --git a/src/error.rs b/src/error.rs index 9d687e8..10e187d 100644 --- a/src/error.rs +++ b/src/error.rs @@ -1,10 +1,11 @@ +use serde::{Serialize, Deserialize}; use crate::sys; /// Covers errors that can be returned by the steamworks API /// /// Documentation is based on official documentation which doesn't /// always explain when an error could be returned or its meaning. -#[derive(Debug, Fail)] +#[derive(Debug, Fail, Serialize, Deserialize, PartialEq, Eq)] pub enum SteamError { /// Returned if the steamworks API fails to initialize. #[fail(display = "failed to init the steamworks API")] @@ -494,4 +495,4 @@ impl From for SteamError { _ => unreachable!(), } } -} \ No newline at end of file +} -- cgit v1.2.3