The following struct
use hdk::prelude::*;
#[derive(Serialize, Deserialize, Debug, SerializedBytes)]
struct Test<T> {
name: T,
}
throws a compile error
missing generics for struct `Test`
expected 1 generic argument
main.rs(4, 8): struct defined here, with 1 generic parameter: `T`
main.rs(4, 12): add missing generic argument: `<T>`
It appears that the SerializedBytes derive macro is not working with struct containing generic parameters. Is this a bug or a known limitation?
The following struct
throws a compile error
It appears that the
SerializedBytesderive macro is not working with struct containing generic parameters. Is this a bug or a known limitation?