pub struct BatchSubresult {
pub status_code: u16,
pub result: Value,
}Expand description
One sub-request result inside BatchResponse::results.
result is the body returned by the sub-request — a record on success,
null for a 204 No Content (e.g. PATCH/DELETE), or a Salesforce error
array on failure. Its shape is intentionally untyped because batch
sub-requests are heterogeneous.
Fields§
§status_code: u16HTTP status code returned by this sub-request.
result: ValueSub-request response body, or Value::Null for 204 responses.
Implementations§
Source§impl BatchSubresult
impl BatchSubresult
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
true if this sub-request succeeded (status_code in 200..300).
Trait Implementations§
Source§impl Clone for BatchSubresult
impl Clone for BatchSubresult
Source§fn clone(&self) -> BatchSubresult
fn clone(&self) -> BatchSubresult
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 BatchSubresult
impl Debug for BatchSubresult
Source§impl<'de> Deserialize<'de> for BatchSubresult
impl<'de> Deserialize<'de> for BatchSubresult
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 BatchSubresult
impl RefUnwindSafe for BatchSubresult
impl Send for BatchSubresult
impl Sync for BatchSubresult
impl Unpin for BatchSubresult
impl UnsafeUnpin for BatchSubresult
impl UnwindSafe for BatchSubresult
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