polyester/models/common.rs
1//! Shared escape-hatch models (Go `models/common.go` parity).
2
3use serde_json::Value;
4
5/// Escape hatch for responses not yet fully modeled.
6#[derive(Debug, Clone, PartialEq)]
7pub struct ApiData {
8 pub raw: Value,
9}
10
11impl ApiData {
12 pub fn empty() -> Self {
13 Self {
14 raw: Value::Object(serde_json::Map::new()),
15 }
16 }
17}