qubit-redact-derive 0.4.1

Derive macros for qubit-redact domain-object formatting
Documentation
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Parsed field shape shared by container and variant data.

use crate::internal::{
    NamedField,
    UnnamedField,
};

/// Validated named, unnamed, or unit fields in source order.
///
/// # Type Parameters
///
/// * `'a` - Lifetime of the borrowed field syntax.
#[must_use]
pub(crate) enum FieldsData<'a> {
    /// Brace-delimited fields carrying identifiers.
    Named(Vec<NamedField<'a>>),
    /// Tuple fields addressed by stable declaration indexes.
    Unnamed(Vec<UnnamedField<'a>>),
    /// A container or variant without fields.
    Unit,
}