Add field with serde attribute to test

to catch issues with serde attribute stripping in tests
This commit is contained in:
Jonas Platte 2019-11-21 11:01:08 +01:00
parent ca5344582b
commit f0bdc9a7fb
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -36,6 +36,10 @@ pub mod some_endpoint {
// With no attribute on the field, it will be extracted from the body of the response.
pub value: String,
// You can use serde attributes on any kind of field
#[serde(skip_serializing_if = "Option::is_none")]
pub optional_flag: Option<bool>,
}
}
}