-
I am not entirely sure if this makes even that much sends due to But the following code does not work: #[serde_as(as = "HashMap<BorrowCow, MyStruct<'a>>")]
pub entries: HashMap<Cow<'a, str>, MyStruct<'a>>, Is this possible? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
You are missing some key details in your question, so it is hard to answer. If you provide a small compilable example, that makes is much easier to see what is going on and, very importantly, shows the error messages you get. I think you might have the problem from #202. |
Beta Was this translation helpful? Give feedback.
You are missing some key details in your question, so it is hard to answer. If you provide a small compilable example, that makes is much easier to see what is going on and, very importantly, shows the error messages you get.
I think you might have the problem from #202.
In that case, the correct attribute is
#[serde_as(as = "HashMap<BorrowCow, _>")]
.