1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
use serde::{Deserialize, Serialize};

#[derive(Debug, Serialize, Deserialize)]
pub struct Chain {
    ///  Bitcoin address
    pub address: String,
    /// Charge settlement timestamp
    pub settled_at: Option<u64>,
    /// Transaction ID on Bitcoin Blockchain
    pub tx: Option<String>,
}

#[derive(Debug, Serialize, Deserialize)]
pub struct Lightning {
    /// Payment Request creation timestamp
    pub created_at: Option<u64>,
    /// Charge settlement timestamp
    pub settled_at: Option<u64>,
    /// Payment Request hash
    pub payreq: String,
}