Given the structure:
#[derive(Debug, Serialize)] pub struct ReqMetrics { start: Timespec, pub name: String }
How can I guarantee that Serde ignores a field startwhen serialized?
start
The correct annotation #[serde(skip_serializing)].
#[serde(skip_serializing)]
Source: https://habr.com/ru/post/1669777/More articles:C ++ inheritance superclass function call - c ++In Perl, what is the difference between `use lib` and` lib-> import`? - perlВ какой области необъявленная переменная используется глубоко в коде? - scopeИспользование SearchField Inside Popover продолжает издавать "select" Event and Rerenders Popover - sapui5Filter groups that do not have enough lines that satisfy the condition - pythonAndroid Studio annoys popup for layout_width and layout_height - androidКак связаться с классом шаблона (псевдоним), определяемым "использованием шаблона"? - c++Swift Logging for Custom Components - iosPrintf pipe to ls in bash? - linuxUsing Abort to Improve / Simplify Code in Some Situations - delphiAll Articles