rosetta_types/
network_options_response.rs

1/*
2 * Rosetta
3 *
4 * Build Once. Integrate Your Blockchain Everywhere.
5 *
6 * The version of the OpenAPI document: 1.4.13
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11/// NetworkOptionsResponse : NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and errors.
12
13#[derive(Clone, Debug, PartialEq, Eq, Default, Serialize, Deserialize)]
14pub struct NetworkOptionsResponse {
15    #[serde(rename = "version")]
16    pub version: crate::Version,
17    #[serde(rename = "allow")]
18    pub allow: Option<crate::Allow>,
19}
20
21impl NetworkOptionsResponse {
22    /// NetworkOptionsResponse contains information about the versioning of the node and the allowed operation statuses, operation types, and errors.
23    pub fn new(version: crate::Version) -> NetworkOptionsResponse {
24        NetworkOptionsResponse {
25            version,
26            allow: None,
27        }
28    }
29}