blockfrost-openapi 0.1.88

Blockfrost OpenAPI types for Cardano
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::models;
use serde::{Deserialize, Serialize};

#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct ScriptCbor {
    /// CBOR contents of the `plutus` script, null for `timelocks`
    #[serde(rename = "cbor", deserialize_with = "Option::deserialize")]
    pub cbor: Option<String>,
}

impl ScriptCbor {
    pub fn new(cbor: Option<String>) -> ScriptCbor {
        ScriptCbor {
            cbor,
        }
    }
}