cwist
Modern C web framework with libttak runtime
Loading...
Searching...
No Matches
cwist_bind_field Struct Reference

Per-field binding descriptor. More...

#include <bind.h>

Collaboration diagram for cwist_bind_field:

Public Attributes

const char * json_key
 Source key in JSON/Form payload.
 
cwist_bind_field_type_t target_type
 Destination C type.
 
size_t target_offset
 Byte offset inside the user struct.
 
size_t target_size
 sizeof(destination) for bounds checking.
 
const cwist_bind_rule_t * rules
 Array of rules (NULL-terminated by type == -1).
 
size_t rule_count
 Number of rules (optional, for static arrays).
 

Detailed Description

Per-field binding descriptor.

Definition at line 74 of file bind.h.

Member Data Documentation

◆ json_key

const char* cwist_bind_field::json_key

Source key in JSON/Form payload.

Definition at line 75 of file bind.h.

◆ rule_count

size_t cwist_bind_field::rule_count

Number of rules (optional, for static arrays).

Definition at line 80 of file bind.h.

◆ rules

const cwist_bind_rule_t* cwist_bind_field::rules

Array of rules (NULL-terminated by type == -1).

Definition at line 79 of file bind.h.

◆ target_offset

size_t cwist_bind_field::target_offset

Byte offset inside the user struct.

Definition at line 77 of file bind.h.

◆ target_size

size_t cwist_bind_field::target_size

sizeof(destination) for bounds checking.

Definition at line 78 of file bind.h.

◆ target_type

cwist_bind_field_type_t cwist_bind_field::target_type

Destination C type.

Definition at line 76 of file bind.h.


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