ciboulette 0.1.4

Library to parse JSON:API requests and build responses
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::*;
use getset::CopyGetters;

/// A response, built from a request.
#[derive(Debug, Getters, CopyGetters, Serialize)]
pub struct CibouletteResponse<'response, B> {
    /// The body of the response.
    #[serde(flatten)]
    #[getset(get = "pub")]
    pub body: CibouletteResponseBody<'response, B>,
    /// The status of the response
    #[getset(get_copy = "pub")]
    #[serde(skip_serializing)]
    pub status: CibouletteResponseStatus,
}