correlate 0.3.0

correlate is a standalone server that listens for Stripe webhook events and sends notification emails about successful orders.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use rocket::serde::Deserialize;

/// Represents customer details from Stripe.
#[derive(Debug, Deserialize)]
#[serde(crate = "rocket::serde")]
pub struct StripeCustomerDetails {
    /// The customer's email address.
    /// This is used for sending receipts and communications.
    pub email: String,

    /// The customer's full name.
    /// Used for personalization in transactional emails.
    pub name: String,
}