1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use super::*;

#[derive(Debug)]
pub struct ResponseData {
    /// Top level serialization key to be used for the data.
    pub key: String,

    /// The actual response data.
    pub data: Item,
}

impl ResponseData {
    pub fn new(key: String, data: Item) -> Self {
        Self { key, data }
    }
}