Skip to main content

Crate use_event_id

Crate use_event_id 

Source
Expand description

§use-event-id

Lightweight event identifier primitive for RustUse.

§Install

[dependencies]
use-event-id = "0.1.0"

§Example

use use_event_id::EventId;

let id = EventId::new("evt-001");

assert_eq!(id.as_str(), "evt-001");
assert_eq!(id.to_string(), "evt-001");

§Scope

  • Store caller-provided event id text.
  • Provide common string conversions and display behavior.
  • Keep construction infallible and policy-free for v0.1.0.

§Non-Goals

  • No UUID generation.
  • No global uniqueness guarantees.
  • No validation beyond preserving the supplied text.

§Status

Experimental v0.1.0 primitive.

§License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license

Structs§

EventId