pub struct SimpleError {
pub error: Option<String>,
pub error_description: Option<String>,
pub message: Option<String>,
pub extra: HashMap<String, Value>,
}Expand description
Simple error response structure for AT Protocol APIs.
This structure represents the standard error response format used by AT Protocol services, allowing for flexible error reporting with optional fields and extension points for additional error context.
Fields§
§error: Option<String>The error code identifier
error_description: Option<String>Human-readable description of the error
message: Option<String>Additional error message details
extra: HashMap<String, Value>Additional error fields that don’t fit standard structure
Implementations§
Source§impl SimpleError
impl SimpleError
Sourcepub fn error_message(&self) -> String
pub fn error_message(&self) -> String
Combines all available error information into a single message.
Concatenates the error code, description, and message fields with colons to provide a comprehensive error description.
Trait Implementations§
Source§impl Clone for SimpleError
impl Clone for SimpleError
Source§fn clone(&self) -> SimpleError
fn clone(&self) -> SimpleError
Returns a duplicate of the value. Read more
1.0.0 · 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 SimpleError
impl Debug for SimpleError
Source§impl<'de> Deserialize<'de> for SimpleError
impl<'de> Deserialize<'de> for SimpleError
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 SimpleError
impl RefUnwindSafe for SimpleError
impl Send for SimpleError
impl Sync for SimpleError
impl Unpin for SimpleError
impl UnwindSafe for SimpleError
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