Skip to main content

blockfrost_openapi/models/
script_datum_cbor.rs

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