use std::collections::HashMap;

use serde::{Deserialize, Serialize};

/// Error information
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ErrorInfo {
    /// Error code
    pub code: String,
    /// Human-readable message
    pub message: String,
    /// Additional error details
    pub details: HashMap<String, String>,
    /// Language for the error message
    pub language: String,
}
