pub fn serialize<S>(u: &Uuid, serializer: S) -> Result<S::Ok, S::Error>where S: Serializer,
Serialize from a Uuid as a uuid::fmt::Urn
Uuid
uuid::fmt::Urn
#[derive(serde_derive::Serialize)] struct Struct { // This will be serialize as uuid::fmt::Urn #[serde(serialize_with = "uuid::serde::urn::serialize")] id: uuid::Uuid, }