/*
 * photon-indexer
 *
 * Solana indexer for general compression
 *
 * The version of the OpenAPI document: 0.50.0
 *
 * Generated by: https://openapi-generator.tech
 */

use crate::models;

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetQueueElementsPost200ResponseResult {
    #[serde(rename = "context")]
    pub context: Box<models::Context>,

    #[serde(
        rename = "outputQueueElements",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub output_queue_elements: Option<Vec<models::GetQueueElementsResponseValue>>,

    #[serde(
        rename = "outputQueueIndex",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub output_queue_index: Option<u64>,

    #[serde(
        rename = "inputQueueElements",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub input_queue_elements: Option<Vec<models::GetQueueElementsResponseValue>>,

    #[serde(
        rename = "inputQueueIndex",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub input_queue_index: Option<u64>,
}

impl GetQueueElementsPost200ResponseResult {
    pub fn new(context: models::Context) -> GetQueueElementsPost200ResponseResult {
        GetQueueElementsPost200ResponseResult {
            context: Box::new(context),
            output_queue_elements: None,
            output_queue_index: None,
            input_queue_elements: None,
            input_queue_index: None,
        }
    }
}
