stripe/model/
account_requirements_error.rs

1use serde::{Serialize, Deserialize};
2///
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct AccountRequirementsError {
5    ///The code for the type of error.
6    pub code: String,
7    ///An informative message that indicates the error type and provides additional details about the error.
8    pub reason: String,
9    ///The specific user onboarding requirement field (in the requirements hash) that needs to be resolved.
10    pub requirement: String,
11}
12impl std::fmt::Display for AccountRequirementsError {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}