/*
 * 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 GetQueueElementsPostRequestParams {
    /// A 32-byte hash represented as a base58 string.
    #[serde(rename = "tree")]
    pub tree: String,

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

    #[serde(
        rename = "outputQueueLimit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub output_queue_limit: Option<u16>,

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

    #[serde(
        rename = "inputQueueLimit",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub input_queue_limit: Option<u16>,
}

impl GetQueueElementsPostRequestParams {
    pub fn new(tree: String) -> GetQueueElementsPostRequestParams {
        GetQueueElementsPostRequestParams {
            tree,
            output_queue_start_index: None,
            output_queue_limit: None,
            input_queue_start_index: None,
            input_queue_limit: None,
        }
    }
}
