1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/// Helper for defining custom non-fungible token metadata properties.
///
/// Pass a JSON literal as the single input parameter, and the macro will return the corresponding
/// `Option<`[`JsonObject`](crate::JsonObject)`>` value.
///
/// # Example
/// ```no_run
/// use catenis_api_client::{
/// json_obj,
/// api::{
/// IntoJsonObj,
/// NewNonFungibleTokenMetadata,
/// }
/// };
///
/// let new_nf_token_metadata = NewNonFungibleTokenMetadata {
/// name: String::from("TestNFToken_1"),
/// description: Some(String::from("First non-fungible token issued for test")),
/// custom: json_obj!({
/// "sensitiveProps": {
/// "senseProp1": "XYZ",
/// "senseProp2": "456"
/// },
/// "propNum": 5,
/// "propStr": "ABC",
/// "propBool": true
/// }),
/// };
/// ```