Skip to main content

blockfrost_openapi/models/
ipfs_add_200_response.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5pub struct IpfsAdd200Response {
6    /// Name of the file
7    #[serde(rename = "name")]
8    pub name: String,
9    /// IPFS hash of the file
10    #[serde(rename = "ipfs_hash")]
11    pub ipfs_hash: String,
12    /// IPFS node size in Bytes
13    #[serde(rename = "size")]
14    pub size: String,
15}
16
17impl IpfsAdd200Response {
18    pub fn new(name: String, ipfs_hash: String, size: String) -> IpfsAdd200Response {
19        IpfsAdd200Response {
20            name,
21            ipfs_hash,
22            size,
23        }
24    }
25}
26