plaid/model/
cra_check_report_base_report_get_response.rs

1use serde::{Serialize, Deserialize};
2use super::{BaseReport, BaseReportWarning};
3///CraCheckReportBaseReportGetResponse defines the response schema for `/cra/check_report/base_report/get`
4#[derive(Debug, Clone, Serialize, Deserialize, Default)]
5pub struct CraCheckReportBaseReportGetResponse {
6    ///An object representing a Base Report
7    pub report: BaseReport,
8    ///A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
9    pub request_id: String,
10    ///If the Base Report generation was successful but identity information cannot be returned, this array will contain information about the errors causing identity information to be missing
11    #[serde(default, skip_serializing_if = "Vec::is_empty")]
12    pub warnings: Vec<BaseReportWarning>,
13}
14impl std::fmt::Display for CraCheckReportBaseReportGetResponse {
15    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
16        write!(f, "{}", serde_json::to_string(self).unwrap())
17    }
18}