pub struct CqrsErrorData {
pub domain: String,
pub code: String,
pub internal_code: u16,
pub status: u16,
pub message: String,
pub details: Option<Value>,
pub request_id: Option<String>,
}Expand description
Internal data for CqrsError. Access fields via Deref on CqrsError.
Fields§
§domain: StringDomain this error originated from (e.g., “plan”, “user”)
code: StringError code as string (e.g., “PLAN_NOT_FOUND”)
internal_code: u16Unique internal code for support/debugging (e.g., 4001)
status: u16HTTP status code (not serialized, used for response)
message: StringHuman-readable error message
details: Option<Value>Additional context (optional)
request_id: Option<String>Request ID for tracing (optional)
Trait Implementations§
Source§impl Clone for CqrsErrorData
impl Clone for CqrsErrorData
Source§fn clone(&self) -> CqrsErrorData
fn clone(&self) -> CqrsErrorData
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 CqrsErrorData
impl Debug for CqrsErrorData
Source§impl<'de> Deserialize<'de> for CqrsErrorData
impl<'de> Deserialize<'de> for CqrsErrorData
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 CqrsErrorData
impl RefUnwindSafe for CqrsErrorData
impl Send for CqrsErrorData
impl Sync for CqrsErrorData
impl Unpin for CqrsErrorData
impl UnsafeUnpin for CqrsErrorData
impl UnwindSafe for CqrsErrorData
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