I have this structure, which is created by deserialization using Serde, and I want to have in it a field of type Url that is not deserialized:
#[derive(Deserialize, Debug)] pub struct Flow { #[serde(skip_deserializing)] pub source: Url, }
Playground
Serd complains about
Url not matching the
Default attribute. I tried with and without getting
Default . Am I the only option for me to implement the
Default trait for
Url myself?
source share