delopay 0.2.0

Official Rust SDK for the DeloPay payments API
Documentation
//! The ephemeral key model.

use serde::Deserialize;
use serde_json::Value;

/// A short-lived key granting a mobile or browser client temporary access to
/// one customer's data, as returned by `EphemeralKeys::create` and
/// `EphemeralKeys::delete`.
#[derive(Debug, Clone, Deserialize)]
#[non_exhaustive]
pub struct EphemeralKeyResponse {
    /// The customer this key is scoped to.
    pub customer_id: String,
    /// Unix timestamp the key was created at.
    pub created_at: i64,
    /// Unix timestamp the key expires at.
    pub expires: i64,
    /// The plaintext key secret. Hand it to the client; never log it.
    pub secret: String,
    /// Any additional response fields not modeled above.
    #[serde(flatten)]
    pub extra: serde_json::Map<String, Value>,
}