1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* 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),
}
}
}