#[non_exhaustive]pub struct ErrorEvent {
pub error: StreamError,
pub request_id: Option<Option<String>>,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.error: StreamError§request_id: Option<Option<String>>§rest: RestImplementations§
Source§impl ErrorEvent
impl ErrorEvent
Sourcepub fn builder(error: StreamError) -> ErrorEventBuilder
pub fn builder(error: StreamError) -> ErrorEventBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for ErrorEvent
impl Clone for ErrorEvent
Source§impl Debug for ErrorEvent
impl Debug for ErrorEvent
Source§impl DeclaredFields for ErrorEvent
impl DeclaredFields for ErrorEvent
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for ErrorEvent
impl<'de> Deserialize<'de> for ErrorEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErrorEvent
Source§impl PartialEq for ErrorEvent
impl PartialEq for ErrorEvent
Source§impl Serialize for ErrorEvent
impl Serialize for ErrorEvent
impl StructuralPartialEq for ErrorEvent
Auto Trait Implementations§
impl Freeze for ErrorEvent
impl RefUnwindSafe for ErrorEvent
impl Send for ErrorEvent
impl Sync for ErrorEvent
impl Unpin for ErrorEvent
impl UnsafeUnpin for ErrorEvent
impl UnwindSafe for ErrorEvent
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