togglr_sdk/generated/models/
feature_error_report.rs1use serde::{Deserialize, Serialize};
12
13#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
14pub struct FeatureErrorReport {
15 #[serde(rename = "error_type")]
16 pub error_type: String,
17 #[serde(rename = "error_message")]
18 pub error_message: String,
19 #[serde(rename = "context", skip_serializing_if = "Option::is_none")]
20 pub context: Option<std::collections::HashMap<String, serde_json::Value>>,
21}
22
23impl FeatureErrorReport {
24 pub fn new(error_type: String, error_message: String) -> FeatureErrorReport {
25 FeatureErrorReport {
26 error_type,
27 error_message,
28 context: None,
29 }
30 }
31}
32