use-event-metadata 0.1.0

Ordered string metadata entries for RustUse event primitives.
Documentation
  • Coverage
  • 7.14%
    1 out of 14 items documented1 out of 13 items with examples
  • Size
  • Source code size: 6.89 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 395.78 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 3s Average build duration of successful builds.
  • all releases: 3s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-event
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

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