Created
January 23, 2023 10:25
-
-
Save Enigo/8d1e2604a3f40ec02a4bdf2312fa11ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use serde::{Deserialize}; | |
#[derive(Deserialize, Debug)] | |
pub struct Mint { | |
pub result: Vec<TheResult>, | |
pub cursor: String, | |
} | |
#[derive(Deserialize, Debug)] | |
pub struct TheResult { | |
#[serde(rename = "timestamp")] | |
pub minted_on: String, | |
pub transaction_id: i32, | |
pub status: String, | |
#[serde(rename = "user")] | |
pub wallet: String, | |
pub token: Token, | |
} | |
#[derive(Deserialize, Debug)] | |
pub struct Token { | |
#[serde(rename = "type")] | |
pub the_type: String, | |
pub data: Data, | |
} | |
#[derive(Deserialize, Debug)] | |
pub struct Data { | |
pub token_id: String, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment