/// Describes a field's structural shape for runtime source loading.
/// The actual type parsing is handled by the derive macro via `FromStr`.
#[derive(Debug, Clone, PartialEq)]#[non_exhaustive]pubenumFieldType{/// A boolean field (special-cased for CLI flags that take no value).
Bool,/// Any scalar type that implements `FromStr`.
Scalar,/// A `Vec<T>` where T implements `FromStr`.
List,/// A nested struct that derives `Config`.
Struct(Vec<FieldInfo>),}/// Metadata about a single config struct field, generated by the derive macro.
#[derive(Debug, Clone, PartialEq)]pubstructFieldInfo{/// The Rust field name (e.g. `max_connections`).
pubfield_name:&'staticstr,
/// The config key name from the `name` attribute (e.g. `max-connections`).
pubconfig_name:&'staticstr,
/// Default value as a string, if specified.
pubdefault_value:Option<&'staticstr>,
/// Description for CLI help text.
pubdescription:Option<&'staticstr>,
/// The field's structural type.
pubfield_type: FieldType,
}