Skip to main content

blockfrost_openapi/models/
scripts_inner.rs

1use crate::models;
2use serde::{Deserialize, Serialize};
3
4#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
5pub struct ScriptsInner {
6    /// Script hash
7    #[serde(rename = "script_hash")]
8    pub script_hash: String,
9}
10
11impl ScriptsInner {
12    pub fn new(script_hash: String) -> ScriptsInner {
13        ScriptsInner {
14            script_hash,
15        }
16    }
17}
18