plaid/model/
processor_liabilities_get_response.rs

1use serde::{Serialize, Deserialize};
2use super::{AccountBase, LiabilitiesObject};
3///ProcessorLiabilitiesGetResponse defines the response schema for `/processor/liabilities/get`
4#[derive(Debug, Clone, Serialize, Deserialize)]
5pub struct ProcessorLiabilitiesGetResponse {
6    ///A single account at a financial institution.
7    pub account: AccountBase,
8    ///An object containing liability accounts
9    pub liabilities: LiabilitiesObject,
10    ///A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
11    pub request_id: String,
12}
13impl std::fmt::Display for ProcessorLiabilitiesGetResponse {
14    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
15        write!(f, "{}", serde_json::to_string(self).unwrap())
16    }
17}