fireblocks_sdk/models/asset_note.rs
1// Fireblocks API
2//
3// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct AssetNote {
16 /// Note content
17 #[serde(rename = "text")]
18 pub text: String,
19 /// Who updated the note (UUID)
20 #[serde(rename = "userId")]
21 pub user_id: uuid::Uuid,
22 /// User name
23 #[serde(rename = "userName")]
24 pub user_name: String,
25 /// ISO Timestamp when last updated
26 #[serde(rename = "updatedAt")]
27 pub updated_at: String,
28}
29
30impl AssetNote {
31 pub fn new(
32 text: String,
33 user_id: uuid::Uuid,
34 user_name: String,
35 updated_at: String,
36 ) -> AssetNote {
37 AssetNote {
38 text,
39 user_id,
40 user_name,
41 updated_at,
42 }
43 }
44}