Skip to main content

SerializableEventError

Trait SerializableEventError 

Source
pub trait SerializableEventError {
    // Required method
    fn variant(&self) -> (&'static str, &Schema<'_>, &dyn SerializableStruct);
}
Expand description

Names the active variant of a generated event stream error enum.

Implemented by generated code; the returned name is the original Smithy member name of the error in the stream union, which becomes the frame’s :exception-type.

Required Methods§

Source

fn variant(&self) -> (&'static str, &Schema<'_>, &dyn SerializableStruct)

Returns the :exception-type value, target schema, and modeled error to frame.

Implementors§