1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
use serde::{Deserialize, Serialize}; /// Error details for failed SQL execution #[derive(Debug, Clone, Serialize, Deserialize)] pub struct ErrorDetail { /// Error code pub code: String, /// Human-readable error message pub message: String, /// Optional additional details #[serde(skip_serializing_if = "Option::is_none")] pub details: Option<String>, }