pub struct BatchRequestResponse {
pub result: Option<BTreeMap<String, Vec<Value>>>,
pub errors: Option<BTreeMap<String, Vec<BatchRequestResponseErrorsValueItem>>>,
}Expand description
The combined response returned by POST /batch-request. Successful resource records are grouped under result, keyed by the name of each resource in the request. Errors are surfaced under errors, keyed the same way.
Fields§
§result: Option<BTreeMap<String, Vec<Value>>>Map of resource names to the records fetched for that resource. The key is the resource’s name from the request body.
errors: Option<BTreeMap<String, Vec<BatchRequestResponseErrorsValueItem>>>Map of resource names to errors encountered while processing that resource. Present only for resources that failed.
Trait Implementations§
Source§impl Clone for BatchRequestResponse
impl Clone for BatchRequestResponse
Source§impl Debug for BatchRequestResponse
impl Debug for BatchRequestResponse
Source§impl Default for BatchRequestResponse
impl Default for BatchRequestResponse
Source§impl<'de> Deserialize<'de> for BatchRequestResponsewhere
BatchRequestResponse: Default,
impl<'de> Deserialize<'de> for BatchRequestResponsewhere
BatchRequestResponse: Default,
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
Source§impl PartialEq for BatchRequestResponse
impl PartialEq for BatchRequestResponse
Source§impl Serialize for BatchRequestResponse
impl Serialize for BatchRequestResponse
impl StructuralPartialEq for BatchRequestResponse
Auto Trait Implementations§
impl Freeze for BatchRequestResponse
impl RefUnwindSafe for BatchRequestResponse
impl Send for BatchRequestResponse
impl Sync for BatchRequestResponse
impl Unpin for BatchRequestResponse
impl UnsafeUnpin for BatchRequestResponse
impl UnwindSafe for BatchRequestResponse
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