-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Hey, thanks for this. It's been really useful.
I'm trying to convert a dynamic metadata field that will be unkown of type as the value, but the key will always be a string.
#[derive(Serialize, Deserialize, Debug)]
#[tsync]
pub struct Transaction {
pub id: i32,
pub amount: i32,
pub formatted_amount: String,
pub transaction_type: String,
pub description: String,
pub balance_after: i32,
pub reference: Option<TransactionReference>,
pub metadata: Option<HashMap<String, String>>,
pub created_at: String,
pub credit: bool,
pub debit: bool,
}I found this issue but not sure if it explains my case. What I tried are change the type to Option<HashMap<String, Value>> and pub metadata: Option<Value>, to no succeed. They were generated as metadata?: Value; which is unkown type.
Is this possible at all?
Metadata
Metadata
Assignees
Labels
No labels