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};

/// BatchEligibilityPollingResponseContent : Common output structure for list operations with pagination support.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct BatchEligibilityPollingResponseContent {
    /// Each eligibility check response is included as a separate item in this array. The response shape is identical to the shape of the response for the [Real-Time Eligibility Check](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-eligibility) endpoint, with the addition of two new properties that help you correlate the results with individual eligibility checks.     - `batchId` contains the `batchId` Stedi returned from the [Batch Eligibility Check](https://www.stedi.com/docs/healthcare/api-reference/post-healthcare-batch-eligibility) endpoint when making the request.     - `submitterTransactionIdentifier` contains the unique identifier for the eligibility check that you submitted in the request.
    #[serde(rename = "items")]
    pub items: Vec<models::BatchEligibilityResultItem>,
    /// A Stedi-generated token that you can submit in the `pageToken` query parameter to retrieve the next page of results. If there are no more results, this property is not included in the response.
    #[serde(rename = "nextPageToken", skip_serializing_if = "Option::is_none")]
    pub next_page_token: Option<String>,
}

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