qubit-redact-derive 0.5.0

Derive macros for qubit-redact domain-object formatting
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// =============================================================================
//    Copyright (c) 2025 - 2026 Haixing Hu.
//
//    SPDX-License-Identifier: Apache-2.0
//
//    Licensed under the Apache License, Version 2.0.
// =============================================================================
//! Source expressions used to build one serialized field carrier.

use proc_macro2::TokenStream;

/// Source expressions used by one serialized field carrier.
pub(super) struct FieldAccess {
    /// Expression accessing the unredacted field value.
    pub(super) raw: TokenStream,
    /// Expression accessing the sibling key for keyed fields.
    pub(super) key_raw: Option<TokenStream>,
}