Skip to content

Instantly share code, notes, and snippets.

@Enigo
Created January 23, 2023 10:25
Show Gist options
  • Save Enigo/8d1e2604a3f40ec02a4bdf2312fa11ff to your computer and use it in GitHub Desktop.
Save Enigo/8d1e2604a3f40ec02a4bdf2312fa11ff to your computer and use it in GitHub Desktop.
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