pub struct BatchingDescriptorProto {
pub batched_field: String,
pub discriminator_fields: Vec<String>,
pub subresponse_field: String,
}Expand description
BatchingDescriptorProto specifies the fields of the request message to be
used for batching, and, optionally, the fields of the response message to be
used for demultiplexing.
Fields§
§batched_field: StringThe repeated field in the request message to be aggregated by batching.
discriminator_fields: Vec<String>A list of the fields in the request message. Two requests will be batched
together only if the values of every field specified in
request_discriminator_fields is equal between the two requests.
subresponse_field: StringOptional. When present, indicates the field in the response message to be used to demultiplex the response into multiple response messages, in correspondence with the multiple request messages originally batched together.
Trait Implementations§
Source§impl Clone for BatchingDescriptorProto
impl Clone for BatchingDescriptorProto
Source§fn clone(&self) -> BatchingDescriptorProto
fn clone(&self) -> BatchingDescriptorProto
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 BatchingDescriptorProto
impl Debug for BatchingDescriptorProto
Source§impl Default for BatchingDescriptorProto
impl Default for BatchingDescriptorProto
Source§fn default() -> BatchingDescriptorProto
fn default() -> BatchingDescriptorProto
Returns the “default value” for a type. Read more
Source§impl Hash for BatchingDescriptorProto
impl Hash for BatchingDescriptorProto
Source§impl Message for BatchingDescriptorProto
impl Message for BatchingDescriptorProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for BatchingDescriptorProto
impl PartialEq for BatchingDescriptorProto
Source§fn eq(&self, other: &BatchingDescriptorProto) -> bool
fn eq(&self, other: &BatchingDescriptorProto) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for BatchingDescriptorProto
impl StructuralPartialEq for BatchingDescriptorProto
Auto Trait Implementations§
impl Freeze for BatchingDescriptorProto
impl RefUnwindSafe for BatchingDescriptorProto
impl Send for BatchingDescriptorProto
impl Sync for BatchingDescriptorProto
impl Unpin for BatchingDescriptorProto
impl UnsafeUnpin for BatchingDescriptorProto
impl UnwindSafe for BatchingDescriptorProto
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