plaid 9.0.1

Plaid client, generated from the OpenAPI spec.
Documentation
use serde::{Serialize, Deserialize};
use super::{CraBankIncomeItem, CraBankIncomeSummary, CraBankIncomeWarning};
///The report of the Plaid Check Income Insights data for an end user.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct CraBankIncome {
    ///The unique identifier associated with the report.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bank_income_id: Option<String>,
    ///Summary for income across all income sources and items (max history of 730 days).
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bank_income_summary: Option<CraBankIncomeSummary>,
    ///The number of days requested by the customer for the report.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub days_requested: Option<i64>,
    ///The time when the report was generated.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub generated_time: Option<chrono::DateTime<chrono::Utc>>,
    ///The list of Items in the report along with the associated metadata about the Item.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub items: Option<Vec<CraBankIncomeItem>>,
    ///If data from the report was unable to be retrieved, the warnings object will contain information about the error that caused the data to be incomplete.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub warnings: Option<Vec<CraBankIncomeWarning>>,
}
impl std::fmt::Display for CraBankIncome {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}