pub struct FirestoreStreamingBatchWriteOptions {
pub throttle_batch_duration: Duration,
pub request_options: Option<FirestoreRequestOptions>,
}Fields§
§throttle_batch_duration: Duration§request_options: Option<FirestoreRequestOptions>Request options (e.g. request tags) for the streaming write requests.
Implementations§
Source§impl FirestoreStreamingBatchWriteOptions
impl FirestoreStreamingBatchWriteOptions
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new FirestoreStreamingBatchWriteOptions from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn throttle_batch_duration(&mut self, value: Duration) -> &mut Self
pub fn throttle_batch_duration(&mut self, value: Duration) -> &mut Self
Sets throttle_batch_duration to value.
Sourcepub fn with_throttle_batch_duration(self, value: Duration) -> Self
pub fn with_throttle_batch_duration(self, value: Duration) -> Self
Returns self with throttle_batch_duration set to value.
Sourcepub fn request_options(&mut self, value: FirestoreRequestOptions) -> &mut Self
pub fn request_options(&mut self, value: FirestoreRequestOptions) -> &mut Self
Sets request_options to Some(value).
Request options (e.g. request tags) for the streaming write requests.
Sourcepub fn reset_request_options(&mut self) -> &mut Self
pub fn reset_request_options(&mut self) -> &mut Self
Sets request_options to None.
Request options (e.g. request tags) for the streaming write requests.
Sourcepub fn mopt_request_options(
&mut self,
value: Option<FirestoreRequestOptions>,
) -> &mut Self
pub fn mopt_request_options( &mut self, value: Option<FirestoreRequestOptions>, ) -> &mut Self
Sets request_options to the given Option.
Request options (e.g. request tags) for the streaming write requests.
Sourcepub fn with_request_options(self, value: FirestoreRequestOptions) -> Self
pub fn with_request_options(self, value: FirestoreRequestOptions) -> Self
Returns self with request_options set to Some(value).
Request options (e.g. request tags) for the streaming write requests.
Sourcepub fn without_request_options(self) -> Self
pub fn without_request_options(self) -> Self
Returns self with request_options set to None.
Request options (e.g. request tags) for the streaming write requests.
Sourcepub fn opt_request_options(self, value: Option<FirestoreRequestOptions>) -> Self
pub fn opt_request_options(self, value: Option<FirestoreRequestOptions>) -> Self
Returns self with request_options set to the given Option.
Request options (e.g. request tags) for the streaming write requests.
Trait Implementations§
impl Eq for FirestoreStreamingBatchWriteOptions
Source§impl From<FirestoreStreamingBatchWriteOptionsInit> for FirestoreStreamingBatchWriteOptions
impl From<FirestoreStreamingBatchWriteOptionsInit> for FirestoreStreamingBatchWriteOptions
Source§fn from(value: FirestoreStreamingBatchWriteOptionsInit) -> Self
fn from(value: FirestoreStreamingBatchWriteOptionsInit) -> Self
impl StructuralPartialEq for FirestoreStreamingBatchWriteOptions
Auto Trait Implementations§
impl Freeze for FirestoreStreamingBatchWriteOptions
impl RefUnwindSafe for FirestoreStreamingBatchWriteOptions
impl Send for FirestoreStreamingBatchWriteOptions
impl Sync for FirestoreStreamingBatchWriteOptions
impl Unpin for FirestoreStreamingBatchWriteOptions
impl UnsafeUnpin for FirestoreStreamingBatchWriteOptions
impl UnwindSafe for FirestoreStreamingBatchWriteOptions
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
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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>
T in a tonic::Request