/*
* Asana
*
* This is the interface for interacting with the [Asana Platform](https://developers.asana.com). Our API reference is generated from our [OpenAPI spec] (https://raw.githubusercontent.com/Asana/developer-docs/master/defs/asana_oas.yaml).
*
* The version of the OpenAPI document: 1.0
*
* Generated by: https://openapi-generator.tech
*/
/// BatchResponse : A response object returned from a batch request.
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct BatchResponse {
/// The HTTP status code that the invoked endpoint returned.
#[serde(rename = "status_code", skip_serializing_if = "Option::is_none")]
pub status_code: Option<i32>,
/// A map of HTTP headers specific to this result. This is primarily used for returning a `Location` header to accompany a `201 Created` result. The parent HTTP response will contain all common headers.
#[serde(rename = "headers", skip_serializing_if = "Option::is_none")]
pub headers: Option<serde_json::Value>,
/// The JSON body that the invoked endpoint returned.
#[serde(rename = "body", skip_serializing_if = "Option::is_none")]
pub body: Option<serde_json::Value>,
}
impl BatchResponse {
/// A response object returned from a batch request.
pub fn new() -> BatchResponse {
BatchResponse { status_code: None, headers: None, body: None }
}
}