commit
9c4c20c4bf
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## skip_serializing
|
## skip_serializing
|
||||||
|
|
||||||
Attribute `skip_serializing_if` will skip the serialisation of the field if it is set to `true`. Default value is `false`.
|
Attribute `skip_serializing` will skip the serialisation of the field if it is set to `true`. Default value is `false`.
|
||||||
|
|
||||||
- `#[yaserde(skip_serializing = true)]` - Skip serialization of the field.
|
- `#[yaserde(skip_serializing = true)]` - Skip serialization of the field.
|
||||||
- `#[yaserde(skip_serializing = false)]` - The field will be serialized. Default value.
|
- `#[yaserde(skip_serializing = false)]` - The field will be serialized. Default value.
|
||||||
@ -136,4 +136,4 @@ fn main() {
|
|||||||
```
|
```
|
||||||
|
|
||||||
### Known issues
|
### Known issues
|
||||||
- Currently, `enum` fields are not working with `skip_serializing_if`: https://github.com/media-io/yaserde/issues/139
|
- Currently, `enum` fields are not working with `skip_serializing_if`: https://github.com/media-io/yaserde/issues/139
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user