pub struct ExecuteBatchDmlResponse {
pub result_sets: Option<Vec<ResultSet>>,
pub status: Option<Status>,
}
Expand description
The response for ExecuteBatchDml. Contains a list of ResultSet messages, one for each DML statement that has successfully executed, in the same order as the statements in the request. If a statement fails, the status in the response body identifies the cause of the failure. To check for DML statements that failed, use the following approach: 1. Check the status in the response message. The google.rpc.Code enum value OK
indicates that all statements were executed successfully. 2. If the status was not OK
, check the number of result sets in the response. If the response contains N
ResultSet messages, then statement N+1
in the request failed. Example 1: * Request: 5 DML statements, all executed successfully. * Response: 5 ResultSet messages, with the status OK
. Example 2: * Request: 5 DML statements. The third statement has a syntax error. * Response: 2 ResultSet messages, and a syntax error (INVALID_ARGUMENT
) status. The number of ResultSet messages indicates that the third statement failed, and the fourth and fifth statements were not executed.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§result_sets: Option<Vec<ResultSet>>
One ResultSet for each statement in the request that ran successfully, in the same order as the statements in the request. Each ResultSet does not contain any rows. The ResultSetStats in each ResultSet contain the number of rows modified by the statement. Only the first ResultSet in the response contains valid ResultSetMetadata.
status: Option<Status>
If all DML statements are executed successfully, the status is OK
. Otherwise, the error status of the first failed statement.
Trait Implementations§
Source§impl Clone for ExecuteBatchDmlResponse
impl Clone for ExecuteBatchDmlResponse
Source§fn clone(&self) -> ExecuteBatchDmlResponse
fn clone(&self) -> ExecuteBatchDmlResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ExecuteBatchDmlResponse
impl Debug for ExecuteBatchDmlResponse
Source§impl Default for ExecuteBatchDmlResponse
impl Default for ExecuteBatchDmlResponse
Source§fn default() -> ExecuteBatchDmlResponse
fn default() -> ExecuteBatchDmlResponse
Source§impl<'de> Deserialize<'de> for ExecuteBatchDmlResponse
impl<'de> Deserialize<'de> for ExecuteBatchDmlResponse
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>,
Source§impl Serialize for ExecuteBatchDmlResponse
impl Serialize for ExecuteBatchDmlResponse
impl ResponseResult for ExecuteBatchDmlResponse
Auto Trait Implementations§
impl Freeze for ExecuteBatchDmlResponse
impl RefUnwindSafe for ExecuteBatchDmlResponse
impl Send for ExecuteBatchDmlResponse
impl Sync for ExecuteBatchDmlResponse
impl Unpin for ExecuteBatchDmlResponse
impl UnwindSafe for ExecuteBatchDmlResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more