Function rerun::external::uuid::serde::simple::serialize

source ·
pub fn serialize<S>(
    u: &Uuid,
    serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>
where S: Serializer,
Expand description

Serialize from a Uuid as a uuid::fmt::Simple

§Example

#[derive(serde_derive::Serialize)]
struct Struct {
    // This will be serialize as uuid::fmt::Simple
    #[serde(serialize_with = "uuid::serde::simple::serialize")]
    id: uuid::Uuid,
}