#[non_exhaustive]pub enum ConverseStreamEvent {
MessageStart(MessageStartEvent),
ContentBlockStart(ContentBlockStartEvent),
ContentBlockDelta(ContentBlockDeltaEvent),
ContentBlockStop(ContentBlockStopEvent),
MessageStop(MessageStopEvent),
Metadata(Box<ConverseStreamMetadataEvent>),
InternalServerException(StreamException),
ModelStreamErrorException(ModelStreamErrorException),
ValidationException(StreamException),
ThrottlingException(StreamException),
ServiceUnavailableException(StreamException),
Unknown {
event_type: String,
payload: Value,
},
}Expand description
A decoded Smithy event-stream item. The discriminant comes from the
:event-type or :exception-type header; the inner struct is the frame’s
JSON payload.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
MessageStart(MessageStartEvent)
ContentBlockStart(ContentBlockStartEvent)
ContentBlockDelta(ContentBlockDeltaEvent)
ContentBlockStop(ContentBlockStopEvent)
MessageStop(MessageStopEvent)
Metadata(Box<ConverseStreamMetadataEvent>)
InternalServerException(StreamException)
ModelStreamErrorException(ModelStreamErrorException)
ValidationException(StreamException)
ThrottlingException(StreamException)
Unknown
Trait Implementations§
Source§impl Clone for ConverseStreamEvent
impl Clone for ConverseStreamEvent
Source§fn clone(&self) -> ConverseStreamEvent
fn clone(&self) -> ConverseStreamEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConverseStreamEvent
impl Debug for ConverseStreamEvent
Source§impl PartialEq for ConverseStreamEvent
impl PartialEq for ConverseStreamEvent
impl StructuralPartialEq for ConverseStreamEvent
Auto Trait Implementations§
impl Freeze for ConverseStreamEvent
impl RefUnwindSafe for ConverseStreamEvent
impl Send for ConverseStreamEvent
impl Sync for ConverseStreamEvent
impl Unpin for ConverseStreamEvent
impl UnsafeUnpin for ConverseStreamEvent
impl UnwindSafe for ConverseStreamEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more