plaid/model/
cra_check_report_failed_webhook.rs

1use serde::{Serialize, Deserialize};
2use super::WebhookEnvironmentValues;
3///Fired when a Check Report has failed to generate
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct CraCheckReportFailedWebhook {
6    ///The Plaid environment the webhook was sent from
7    pub environment: WebhookEnvironmentValues,
8    ///The `user_id` corresponding to the user the webhook has fired for.
9    pub user_id: String,
10    ///`CHECK_REPORT_FAILED`
11    pub webhook_code: String,
12    ///`CHECK_REPORT`
13    pub webhook_type: String,
14}
15impl std::fmt::Display for CraCheckReportFailedWebhook {
16    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
17        write!(f, "{}", serde_json::to_string(self).unwrap())
18    }
19}