Closed frol closed 4 years ago
Can you give an example?
#[derive(
BorshSerialize,
BorshDeserialize,
)]
pub struct AccountId<'a>(std::borrow::Cow<'a, str>);
Well, it shouldn't be an issue I guess
Cool thanks! I will take a look from here.
How hard would it be to implement Cow support?
When you deserialize, you just always use the Owned variant, otherwise, you only need
as_ref()
to read the data./cc @nearmax