Trying to understand, not explained anywhere, why the fields order is different in serialize and deserialize methods in movie model?
...
static borshSchema: borsh.Layout<Movie> = borsh.struct([
borsh.u8("variant"),
borsh.str("title"),
borsh.u8("rating"),
borsh.str("description"),
]);
static borshAccountSchema: borsh.Layout<Movie> = borsh.struct([
borsh.u8("initialized"),
borsh.u8("rating"),
borsh.str("title"),
borsh.str("description"),
]);
...