psd2 0.0.1-alpha.2

European Payment Service Directive Utilites
Documentation
//! # openbanking
//!
//! the open banking module contains various types and utilities for
//! working directly with psd2 protocol, Open Banking (primarily UK)
//!

use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug)]
pub struct TokenRequest<'a> {
    pub scope: &'a str,
    pub client_id: &'a str,
    pub grant_type: &'a str,
}

#[derive(Deserialize, Debug)]
pub struct AccessToken {
    pub access_token: String,
    pub token_type: String,
    pub expires_in: i64,
}