vibe.d json deserializeJson!Foo and ddbc.update!Foo

Chris Bare chris at bareflix.com
Sat Feb 13 18:02:19 UTC 2021


On Saturday, 13 February 2021 at 01:21:56 UTC, Steven 
Schveighoffer wrote:
> On 2/12/21 6:22 PM, Chris Bare wrote:
>> [...]
>
> Does @ignore work? That's a UDA that tells vibe to ignore the 
> field. Though I don't know if it means it leaves it alone 
> completely.
>
> https://vibed.org/api/vibe.data.serialization/ignore
>
> -Steve

@ignore just prevents it from throwing an error if the field is 
not in the json. The field still gets overwritten with it's 
default value in the struct.



More information about the Digitalmars-d-learn mailing list