Expand description
§use-event-metadata
Ordered string metadata entries for RustUse event primitives.
§Install
[dependencies]
use-event-metadata = "0.1.0"§Example
use use_event_metadata::EventMetadata;
let mut metadata = EventMetadata::with_entry("trace_id", "abc");
metadata.insert("trace_id", "def");
assert_eq!(metadata.get("trace_id"), Some("def"));
assert_eq!(metadata.len(), 1);§Scope
- Store ordered string key/value metadata entries.
- Update an existing key or append a new entry.
- Keep metadata dependency-free and serialization-free.
§Non-Goals
- No typed metadata schema.
- No header or protocol mapping.
- No persistence or indexing.
§Status
Experimental v0.1.0 primitive.
§License
Licensed under either of the following, at your option:
- Apache License, Version 2.0
- MIT license