Right now, PackageUrl doesn't implement serde::Serialize or serde::Deserialize, but does implement ToString and FromStr. To use PackageUrl in a struct that is #[derive(Serialize)], someone needs to add the #[serde(with = "...")] attribute.
Proposal: Add a serde feature to packageurl which lights up Serialize and Deserialize impls for PackageUrl.
Right now,
PackageUrl
doesn't implementserde::Serialize
orserde::Deserialize
, but does implementToString
andFromStr
. To usePackageUrl
in a struct that is#[derive(Serialize)]
, someone needs to add the#[serde(with = "...")]
attribute.Proposal: Add a
serde
feature topackageurl
which lights upSerialize
andDeserialize
impls forPackageUrl
.