coinbase_mesh/models/metadata_request.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
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// MetadataRequest : A MetadataRequest is utilized in any request where the only argument is optional metadata.
15#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
16pub struct MetadataRequest {
17 #[serde(rename = "metadata", skip_serializing_if = "Option::is_none")]
18 pub metadata: Option<serde_json::Value>,
19}
20
21impl MetadataRequest {
22 /// A MetadataRequest is utilized in any request where the only argument is optional metadata.
23 pub fn new() -> MetadataRequest {
24 MetadataRequest {
25 metadata: None,
26 }
27 }
28}
29