pub struct BatchDmlBuilder { /* private fields */ }Expand description
A builder for BatchDml.
Implementations§
Source§impl BatchDmlBuilder
impl BatchDmlBuilder
Sourcepub fn add_statement(self, statement: impl Into<Statement>) -> Self
pub fn add_statement(self, statement: impl Into<Statement>) -> Self
Adds a statement to the batch.
Sourcepub fn set_request_tag(self, tag: impl Into<String>) -> Self
pub fn set_request_tag(self, tag: impl Into<String>) -> Self
Sets the request tag for this batch.
§Example
let statement1 = Statement::builder("UPDATE users SET active = true WHERE id = 1").build();
let batch = BatchDml::builder()
.add_statement(statement1)
.set_request_tag("my-tag")
.build();See also: Troubleshooting with tags
Sourcepub fn with_attempt_timeout(self, timeout: Duration) -> Self
pub fn with_attempt_timeout(self, timeout: Duration) -> Self
Sets the per-attempt timeout for this batch DML request.
Sourcepub fn with_retry_policy(self, policy: impl Into<RetryPolicyArg>) -> Self
pub fn with_retry_policy(self, policy: impl Into<RetryPolicyArg>) -> Self
Sets the retry policy for this batch DML request.
Sourcepub fn with_backoff_policy(self, policy: impl Into<BackoffPolicyArg>) -> Self
pub fn with_backoff_policy(self, policy: impl Into<BackoffPolicyArg>) -> Self
Sets the backoff policy for this batch DML request.
Trait Implementations§
Source§impl Clone for BatchDmlBuilder
impl Clone for BatchDmlBuilder
Source§fn clone(&self) -> BatchDmlBuilder
fn clone(&self) -> BatchDmlBuilder
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 BatchDmlBuilder
impl Debug for BatchDmlBuilder
Source§impl Default for BatchDmlBuilder
impl Default for BatchDmlBuilder
Source§fn default() -> BatchDmlBuilder
fn default() -> BatchDmlBuilder
Returns the “default value” for a type. Read more
Source§impl From<BatchDmlBuilder> for BatchDml
impl From<BatchDmlBuilder> for BatchDml
Source§fn from(builder: BatchDmlBuilder) -> Self
fn from(builder: BatchDmlBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BatchDmlBuilder
impl !UnwindSafe for BatchDmlBuilder
impl Freeze for BatchDmlBuilder
impl Send for BatchDmlBuilder
impl Sync for BatchDmlBuilder
impl Unpin for BatchDmlBuilder
impl UnsafeUnpin for BatchDmlBuilder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request