plaid/model/
transfer_authorization_device.rs

1use serde::{Serialize, Deserialize};
2///Information about the device being used to initiate the authorization. These fields are not currently incorporated into the risk check.
3#[derive(Debug, Clone, Serialize, Deserialize, Default)]
4pub struct TransferAuthorizationDevice {
5    ///The IP address of the device being used to initiate the authorization.
6    #[serde(default, skip_serializing_if = "Option::is_none")]
7    pub ip_address: Option<String>,
8    ///The user agent of the device being used to initiate the authorization.
9    #[serde(default, skip_serializing_if = "Option::is_none")]
10    pub user_agent: Option<String>,
11}
12impl std::fmt::Display for TransferAuthorizationDevice {
13    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
14        write!(f, "{}", serde_json::to_string(self).unwrap())
15    }
16}