Skip to main content

GeneratedEventAccess

Trait GeneratedEventAccess 

Source
pub trait GeneratedEventAccess: EventSchema {
    type Access<'a>;
    type Builder;

    // Required methods
    fn wrap(data: &[u8]) -> Self::Access<'_>;
    fn builder() -> Self::Builder;
}
Expand description

Generated typed accessors for event payloads.

Required Associated Types§

Source

type Access<'a>

Read-only payload accessor type.

Source

type Builder

Payload builder type.

Required Methods§

Source

fn wrap(data: &[u8]) -> Self::Access<'_>

Wraps encoded payload bytes in a read-only accessor.

Source

fn builder() -> Self::Builder

Creates a payload builder.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§