qubit-redact-derive 0.5.0

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 container shape shared by every derive backend.
// qubit-style: allow type-file-name

use super::FieldsData;
use super::VariantData;
/// Validated struct or enum data in source order.
///
/// # Type Parameters
///
/// * `'a` - Lifetime of the borrowed derive input syntax.
#[must_use]
pub(crate) enum ContainerData<'a> {
    /// One struct with named, unnamed, or unit fields.
    Struct(FieldsData<'a>),
    /// One enum with variants retained in declaration order.
    Enum(Vec<VariantData<'a>>),
}