pub struct SttError {
pub code: SttErrorCode,
pub message: String,
pub details: Option<String>,
}Expand description
Structured error event for frontend consumption
Fields§
§code: SttErrorCodeError code for programmatic handling
message: StringHuman-readable error message
details: Option<String>Platform-specific error details (optional)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SttError
impl<'de> Deserialize<'de> for SttError
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
Auto Trait Implementations§
impl Freeze for SttError
impl RefUnwindSafe for SttError
impl Send for SttError
impl Sync for SttError
impl Unpin for SttError
impl UnsafeUnpin for SttError
impl UnwindSafe for SttError
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