4

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 Answer 1

8

The correct annotation is #[serde(skip_serializing)].

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.