.TH "hyle/field.h" 3 "libhyle" \" -*- nroff -*- .ad l .nh .SH NAME hyle/field.h \- Field descriptors and validation metadata\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br .SS "Data Structures" .in +1c .ti -1c .RI "struct \fBhyle_field_t\fP" .br .RI "Per-field descriptor and validation constraints\&. " .in -1c .SS "Enumerations" .in +1c .ti -1c .RI "enum \fBhyle_field_type_t\fP { \fBHYLE_FIELD_STRING\fP = 0, \fBHYLE_FIELD_INT\fP, \fBHYLE_FIELD_BOOL\fP, \fBHYLE_FIELD_NULLABLE_STRING\fP, \fBHYLE_FIELD_REFERENCE\fP, \fBHYLE_FIELD_MULTI_REFERENCE\fP, \fBHYLE_FIELD_INVERSE\fP, \fBHYLE_FIELD_DERIVED\fP = 99 }" .br .RI "Storage and matching category of a hyle field\&. " .in -1c .SS "Functions" .in +1c .ti -1c .RI "const \fBhyle_field_t\fP * \fBhyle_field_by_name\fP (const \fBhyle_field_t\fP *fields, size_t field_count, const char *name)" .br .RI "Find a field descriptor by name\&. " .ti -1c .RI "int \fBhyle_field_is_reference\fP (\fBhyle_field_type_t\fP type)" .br .RI "Test whether a field type is a reference category\&. " .in -1c .SH "Detailed Description" .PP Field descriptors and validation metadata\&. Declares the field types a hyle source can expose, plus the per-field constraints used by filtering, purification and schema hints\&. .SH "Enumeration Type Documentation" .PP .SS "enum \fBhyle_field_type_t\fP" .PP Storage and matching category of a hyle field\&. .PP \fBEnumerator\fP .in +1c .TP \f(BIHYLE_FIELD_STRING \fP Plain string value\&. .TP \f(BIHYLE_FIELD_INT \fP Integer value\&. .TP \f(BIHYLE_FIELD_BOOL \fP Boolean value\&. .TP \f(BIHYLE_FIELD_NULLABLE_STRING \fP String value that may be absent\&. .TP \f(BIHYLE_FIELD_REFERENCE \fP Single reference to a row of another source\&. .TP \f(BIHYLE_FIELD_MULTI_REFERENCE \fP Newline-separated list of references to another source\&. .TP \f(BIHYLE_FIELD_INVERSE \fP Virtual inverse relation over a foreign reference field\&. .TP \f(BIHYLE_FIELD_DERIVED \fP Derived value computed by a registered derive provider\&. .SH "Function Documentation" .PP .SS "const \fBhyle_field_t\fP * hyle_field_by_name (const \fBhyle_field_t\fP * fields, size_t field_count, const char * name)" .PP Find a field descriptor by name\&. .PP \fBParameters\fP .RS 4 \fIfields\fP Array of field descriptors\&. .br \fIfield_count\fP Number of entries in fields\&. .br \fIname\fP Field name to look up\&. .RE .PP \fBReturns\fP .RS 4 Pointer to the matching descriptor, or NULL when not found\&. .RE .PP .SS "int hyle_field_is_reference (\fBhyle_field_type_t\fP type)" .PP Test whether a field type is a reference category\&. Returns non-zero for HYLE_FIELD_REFERENCE, HYLE_FIELD_MULTI_REFERENCE and HYLE_FIELD_INVERSE\&. .PP \fBParameters\fP .RS 4 \fItype\fP Field type to test\&. .RE .PP \fBReturns\fP .RS 4 1 for reference categories, 0 otherwise\&. .RE .PP .SH "Author" .PP Generated automatically by Doxygen for libhyle from the source code\&.