plaid/model/
watchlist_screening_individual_list_response.rs

1use serde::{Serialize, Deserialize};
2use super::WatchlistScreeningIndividual;
3///Paginated list of individual watchlist screenings.
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct WatchlistScreeningIndividualListResponse {
6    ///An identifier that determines which page of results you receive.
7    #[serde(default, skip_serializing_if = "Option::is_none")]
8    pub next_cursor: Option<String>,
9    ///A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
10    pub request_id: String,
11    ///List of individual watchlist screenings
12    #[serde(default, skip_serializing_if = "Vec::is_empty")]
13    pub watchlist_screenings: Vec<WatchlistScreeningIndividual>,
14}
15impl std::fmt::Display for WatchlistScreeningIndividualListResponse {
16    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17        write!(f, "{}", serde_json::to_string(self).unwrap())
18    }
19}