/*
 * 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 GetBatchAddressUpdateInfoPostRequestParams {
    #[serde(rename = "limit")]
    pub limit: u16,
    #[serde(
        rename = "startQueueIndex",
        default,
        skip_serializing_if = "Option::is_none"
    )]
    pub start_queue_index: Option<u64>,
    /// A Solana public key represented as a base58 string.
    #[serde(rename = "tree")]
    pub tree: String,
}

impl GetBatchAddressUpdateInfoPostRequestParams {
    pub fn new(limit: u16, tree: String) -> GetBatchAddressUpdateInfoPostRequestParams {
        GetBatchAddressUpdateInfoPostRequestParams {
            limit,
            start_queue_index: None,
            tree,
        }
    }
}
