DEVELOPMENT ENVIRONMENT

~liljamo/deck-builder

9e99a5db0520e795605360c3640661900b9cf2e9 — Jonni Liljamo 1 year, 9 months ago 80547c7
feat(shared): derive deserialize for APIError
1 files changed, 2 insertions(+), 2 deletions(-)

M shared/src/error/api.rs
M shared/src/error/api.rs => shared/src/error/api.rs +2 -2
@@ 6,11 6,11 @@
 * See LICENSE for licensing information.
 */

use serde::Serialize;
use serde::{Deserialize, Serialize};
use thiserror::Error;

#[doc = "API errors are in the 1XXXX range"]
#[derive(Debug, Serialize, Error)]
#[derive(Debug, Serialize, Deserialize, Error)]
pub enum APIError {
    // general errors
    #[doc = "Should never be used, but still exists just in case"]