autogen-stedi 0.3.2

Auto-generated, strongly-typed Rust client for the Stedi APIs
Documentation
/*
 * Stedi Payers
 *
 * 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::payers::models;
use serde::{Deserialize, Serialize};

/// SearchPayersResponseContent : Authenticated output — see `SearchPayers`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct SearchPayersResponseContent {
    /// Matching payers sorted by relevance, with the most relevant matches listed first.
    #[serde(rename = "items")]
    pub items: Vec<models::SearchResult>,
    /// 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>,
    /// Statistics about the search results, including the total number of payers matching the search query and the number of payers supported per transaction type.
    #[serde(rename = "stats")]
    pub stats: Box<models::SearchResultsStats>,
}

impl SearchPayersResponseContent {
    /// Authenticated output — see `SearchPayers`.
    pub fn new(items: Vec<models::SearchResult>, stats: models::SearchResultsStats) -> SearchPayersResponseContent {
        SearchPayersResponseContent {
            items,
            next_page_token: None,
            stats: Box::new(stats),
        }
    }
}