Skip to main content

Crate use_event_name

Crate use_event_name 

Source
Expand description

§use-event-name

Lightweight event name primitive for RustUse.

§Install

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

§Example

use use_event_name::EventName;

let name = EventName::new("command.started");

assert_eq!(name.as_str(), "command.started");
assert_eq!(name.to_string(), "command.started");

§Scope

  • Store caller-provided event name text.
  • Provide common string conversions and display behavior.
  • Keep naming policy with the caller.

§Non-Goals

  • No naming convention enforcement.
  • No event registry.
  • No routing or dispatch behavior.

§Status

Experimental v0.1.0 primitive.

§License

Licensed under either of the following, at your option:

  • Apache License, Version 2.0
  • MIT license

Structs§

EventName