hyle_schema_desc(3)libhyle

NAME

hyle_schema_desc - Framework-neutral, pure-C schema descriptor for one field.

SYNOPSIS

#include <schema.h>

Data Fields

const char * key
size_t offset
size_t size
int is_int
int kind
int is_array
int qm_type
union {
};
int writable
int required
size_t min_length
const char * ref_source
const char * ref_inverse
int in_meta
const char * file
const char * filter_style
const char * filter_mode
const char * derive_key
int allow_add
int search_weight

Detailed Description

Framework-neutral, pure-C schema descriptor for one field.

Layout contract: the first 5 fields match bud_field_desc_t so the two can be stride-cast with zero copy. The FIELD_* macros below build these from struct layouts.

Field Documentation

union { ... } hyle_schema_desc

Field category (source_type is a legacy alias).

int hyle_schema_desc::allow_add

Non-zero when new entries may be added through this field.

const char* hyle_schema_desc::derive_key

Key selecting a derive provider for derived fields, or NULL.

const char* hyle_schema_desc::file

Attached file name, or NULL.

const char* hyle_schema_desc::filter_mode

Filter matching mode, or NULL.

const char* hyle_schema_desc::filter_style

Display/filter style hint, or NULL.

int hyle_schema_desc::in_meta

Non-zero when the field lives in meta rather than record state.

int hyle_schema_desc::is_array

0 = scalar, 1 = collection/array.

int hyle_schema_desc::is_int

Non-zero when the field stores an integer.

const char* hyle_schema_desc::key

Field key (struct member name, JSON name).

int hyle_schema_desc::kind

HYLE_KIND_* serialization/UI mode.

size_t hyle_schema_desc::min_length

Minimum string length (0 = unconstrained).

size_t hyle_schema_desc::offset

Byte offset of the member in its owning struct (0 if virtual).

int hyle_schema_desc::qm_type

Corm type id (HYLE_CM_*).

const char* hyle_schema_desc::ref_inverse

Inverse field name for inverse relations.

const char* hyle_schema_desc::ref_source

Source id referenced by reference fields.

int hyle_schema_desc::required

Non-zero when a value is mandatory.

int hyle_schema_desc::search_weight

Custom search ranking weight (0 = auto).

size_t hyle_schema_desc::size

Byte size of the member (0 if virtual).

int hyle_schema_desc::writable

Non-zero when the field may be written by clients.

Author

Generated automatically by Doxygen for libhyle from the source code.