4
votes

Given the struct:

#[derive(Debug, Serialize)]
pub struct ReqMetrics {
    start: Timespec,
    pub name: String
}

How can I ensure that Serde ignores the field start when serializing?

1

1 Answers

7
votes