polyester-sdk 0.1.0-alpha.27

Official Rust SDK for Polyester APIs.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Shared escape-hatch models (Go `models/common.go` parity).

use serde_json::Value;

/// Escape hatch for responses not yet fully modeled.
#[derive(Debug, Clone, PartialEq)]
pub struct ApiData {
    pub raw: Value,
}

impl ApiData {
    pub fn empty() -> Self {
        Self {
            raw: Value::Object(serde_json::Map::new()),
        }
    }
}