plaid 9.0.1

Plaid client, generated from the OpenAPI spec.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Serialize, Deserialize};
use super::LinkSessionSuccessMetadata;
///An object representing an [onSuccess](https://plaid.com/docs/link/web/#onsuccess) callback from Link. This object has been deprecated in favor of the newer [`results.item_add_result`](https://plaid.com/docs/api/link/#link-token-get-response-link-sessions-results-item-add-results), which can support multiple public tokens in a single Link session.
#[derive(Debug, Clone, Serialize, Deserialize, Default)]
pub struct LinkSessionSuccess {
    ///Displayed once a user has successfully linked their Item.
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub metadata: Option<LinkSessionSuccessMetadata>,
    ///Displayed once a user has successfully linked their Item.
    pub public_token: String,
}
impl std::fmt::Display for LinkSessionSuccess {
    fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
        write!(f, "{}", serde_json::to_string(self).unwrap())
    }
}