Skip to main content

Crate use_event_payload

Crate use_event_payload 

Source
Expand description

§use-event-payload

Generic event payload wrapper for RustUse event primitives.

§Install

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

§Example

use use_event_payload::EventPayload;

let payload = EventPayload::new("rustuse build");

assert_eq!(*payload.get(), "rustuse build");

§Scope

  • Wrap any caller-owned payload value.
  • Provide borrowed and owned accessors.
  • Compose with event envelopes without imposing serialization.

§Non-Goals

  • No serialization or deserialization.
  • No schema validation.
  • No message transport 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§

EventPayload