autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Manager
 *
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2024-04-01
 * Contact: healthcare@stedi.com
 * Generated by: https://openapi-generator.tech
 */

use crate::manager::models;
use serde::{Deserialize, Serialize};

/// GetBatchItemsResponseContent : Common output structure for list operations with pagination support.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct GetBatchItemsResponseContent {
    /// A list of batch items. Each `item` represents a single eligibility check in the batch. Unlike the polling endpoint, which only returns results for completed eligibility checks, this endpoint returns results for all eligibility checks in the batch, regardless of their processing status.  All batch items may not be returned in a single response; use the `nextPageToken` to retrieve subsequent pages of results.
    #[serde(rename = "items", skip_serializing_if = "Option::is_none")]
    pub items: Option<Vec<models::BatchItem>>,
    /// Token that you can supply in subsequent requests to retrieve the next page of results. If not returned, there are no more results.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
}

impl GetBatchItemsResponseContent {
    /// Common output structure for list operations with pagination support.
    pub fn new() -> GetBatchItemsResponseContent {
        GetBatchItemsResponseContent {
            items: None,
            next_page_token: None,
        }
    }
}