Skip to main content

blockfrost_openapi/models/
__get_200_response.rs

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