pub struct AggregatedItemError {
pub code: i32,
pub msg: String,
pub data: Option<Value>,
}Expand description
A single item’s failure inside ApiResponse::aggregated_error.
The server serializes each failed item as a full response object, so a
sub-item carries its own business code and payload — a lock conflict, for
example, arrives as code: 40073 with the unlock tokens in data.
Fields§
§code: i32§msg: String§data: Option<Value>Trait Implementations§
Source§impl Clone for AggregatedItemError
impl Clone for AggregatedItemError
Source§fn clone(&self) -> AggregatedItemError
fn clone(&self) -> AggregatedItemError
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 AggregatedItemError
impl Debug for AggregatedItemError
Source§impl<'de> Deserialize<'de> for AggregatedItemError
impl<'de> Deserialize<'de> for AggregatedItemError
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 AggregatedItemError
impl RefUnwindSafe for AggregatedItemError
impl Send for AggregatedItemError
impl Sync for AggregatedItemError
impl Unpin for AggregatedItemError
impl UnsafeUnpin for AggregatedItemError
impl UnwindSafe for AggregatedItemError
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