#[non_exhaustive]pub struct BatchingConfigProto {
pub thresholds: Option<BatchingSettingsProto>,
pub batch_descriptor: Option<BatchingDescriptorProto>,
/* private fields */
}Expand description
BatchingConfigProto defines the batching configuration for an API method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.thresholds: Option<BatchingSettingsProto>The thresholds which trigger a batched request to be sent.
batch_descriptor: Option<BatchingDescriptorProto>The request and response fields used in batching.
Implementations§
Source§impl BatchingConfigProto
impl BatchingConfigProto
pub fn new() -> Self
Sourcepub fn set_thresholds<T>(self, v: T) -> Selfwhere
T: Into<BatchingSettingsProto>,
pub fn set_thresholds<T>(self, v: T) -> Selfwhere
T: Into<BatchingSettingsProto>,
Sets the value of thresholds.
§Example
ⓘ
use google_cloud_api::model::BatchingSettingsProto;
let x = BatchingConfigProto::new().set_thresholds(BatchingSettingsProto::default()/* use setters */);Sourcepub fn set_or_clear_thresholds<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchingSettingsProto>,
pub fn set_or_clear_thresholds<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchingSettingsProto>,
Sets or clears the value of thresholds.
§Example
ⓘ
use google_cloud_api::model::BatchingSettingsProto;
let x = BatchingConfigProto::new().set_or_clear_thresholds(Some(BatchingSettingsProto::default()/* use setters */));
let x = BatchingConfigProto::new().set_or_clear_thresholds(None::<BatchingSettingsProto>);Sourcepub fn set_batch_descriptor<T>(self, v: T) -> Selfwhere
T: Into<BatchingDescriptorProto>,
pub fn set_batch_descriptor<T>(self, v: T) -> Selfwhere
T: Into<BatchingDescriptorProto>,
Sets the value of batch_descriptor.
§Example
ⓘ
use google_cloud_api::model::BatchingDescriptorProto;
let x = BatchingConfigProto::new().set_batch_descriptor(BatchingDescriptorProto::default()/* use setters */);Sourcepub fn set_or_clear_batch_descriptor<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchingDescriptorProto>,
pub fn set_or_clear_batch_descriptor<T>(self, v: Option<T>) -> Selfwhere
T: Into<BatchingDescriptorProto>,
Sets or clears the value of batch_descriptor.
§Example
ⓘ
use google_cloud_api::model::BatchingDescriptorProto;
let x = BatchingConfigProto::new().set_or_clear_batch_descriptor(Some(BatchingDescriptorProto::default()/* use setters */));
let x = BatchingConfigProto::new().set_or_clear_batch_descriptor(None::<BatchingDescriptorProto>);Trait Implementations§
Source§impl Clone for BatchingConfigProto
impl Clone for BatchingConfigProto
Source§fn clone(&self) -> BatchingConfigProto
fn clone(&self) -> BatchingConfigProto
Returns a duplicate of the value. Read more
1.0.0 · 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 BatchingConfigProto
impl Debug for BatchingConfigProto
Source§impl Default for BatchingConfigProto
impl Default for BatchingConfigProto
Source§fn default() -> BatchingConfigProto
fn default() -> BatchingConfigProto
Returns the “default value” for a type. Read more
Source§impl Message for BatchingConfigProto
impl Message for BatchingConfigProto
Source§impl PartialEq for BatchingConfigProto
impl PartialEq for BatchingConfigProto
impl StructuralPartialEq for BatchingConfigProto
Auto Trait Implementations§
impl Freeze for BatchingConfigProto
impl RefUnwindSafe for BatchingConfigProto
impl Send for BatchingConfigProto
impl Sync for BatchingConfigProto
impl Unpin for BatchingConfigProto
impl UnsafeUnpin for BatchingConfigProto
impl UnwindSafe for BatchingConfigProto
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