uf-spectra 0.1.0

Declarative schemas and typed logging APIs for Rust services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use spectra::spectra_schema;

spectra_schema! {
    BadEvent {
        store: "default",
        version: "0.1.0",
        fields: [
            message: {
                r#type: String,
                classification: { pii: false, safe_for_console: true },
            },
        ],
    }
}

fn main() {}