pub struct LinkTokenCreateResponse {
pub expiration: DateTime<Utc>,
pub hosted_link_url: Option<String>,
pub link_token: String,
pub request_id: String,
}
Expand description
LinkTokenCreateResponse defines the response schema for /link/token/create
Fields§
§expiration: DateTime<Utc>
The expiration date for the link_token
, in ISO 8601 format. By default, a link_token
created to generate a public_token
that will be exchanged for a new access_token
expires after 4 hours, and a link_token
created for an existing Item (such as when updating an existing access_token
by launching Link in update mode) expires after 30 minutes. If using Hosted Link, the link_token
will expire at the same time as the Hosted Link URL, and you can customize the duration using the hosted_link.url_lifetime_seconds
option in the request. If using Link Delivery (beta), the link_token
will expire by default after 24 hours if sent via SMS and after 7 days if sent via email.
hosted_link_url: Option<String>
A URL of a Plaid-hosted Link flow that will use the Link token returned by this request. Only present if the session is enabled for Hosted Link. To enable the session for Hosted Link, send a hosted_link
object in the request.
link_token: String
A link_token
, which can be supplied to Link in order to initialize it and receive a public_token
, which can be exchanged for an access_token
.
request_id: String
A unique identifier for the request, which can be used for troubleshooting. This identifier, like all Plaid identifiers, is case sensitive.
Trait Implementations§
Source§impl Clone for LinkTokenCreateResponse
impl Clone for LinkTokenCreateResponse
Source§fn clone(&self) -> LinkTokenCreateResponse
fn clone(&self) -> LinkTokenCreateResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more