Closed shapeshed closed 3 months ago
The previous implementation threw a type error.
| ::serde::Serialize, | ^^^^^^^^^^^^^^^^^^ expected &[u8], found &Option<Vec<u8>>
&[u8]
&Option<Vec<u8>>
This adds custom serde functions and an additional transformer to handle the option correctly.
The previous implementation threw a type error.
| ::serde::Serialize, | ^^^^^^^^^^^^^^^^^^ expected
&[u8]
, found&Option<Vec<u8>>
This adds custom serde functions and an additional transformer to handle the option correctly.