GNUnet 0.21.2
GNUNET_JSON_PackSpec Struct Reference

Element in the array to give to the packer. More...

#include <gnunet_json_lib.h>

Data Fields

const char * field_name
 Name of the field to pack. More...
 
json_t * object
 Object to pack. More...
 
bool allow_null
 True if a NULL (or 0) argument is allowed. More...
 

Detailed Description

Element in the array to give to the packer.

Definition at line 678 of file gnunet_json_lib.h.

Field Documentation

◆ field_name

const char* GNUNET_JSON_PackSpec::field_name

Name of the field to pack.

Definition at line 683 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_pack_().

◆ object

json_t* GNUNET_JSON_PackSpec::object

Object to pack.

Definition at line 688 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_pack_().

◆ allow_null

bool GNUNET_JSON_PackSpec::allow_null

True if a NULL (or 0) argument is allowed.

In this case, if the argument is NULL the packer should return NULL and the field should be skipped (omitted from the generated object) and not be serialized at all.

Definition at line 696 of file gnunet_json_lib.h.

Referenced by GNUNET_JSON_pack_allow_null().


The documentation for this struct was generated from the following file: