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?
The correct annotation is #[serde(skip_serializing)]
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With