pub struct BatchInput {
pub kind: i32,
pub target_name: Vec<String>,
pub data_type: i32,
pub source_input: Vec<String>,
}
Expand description
@@ .. cpp:var:: message BatchInput @@ @@ A batch input is an additional input that must be added by @@ the backend based on all the requests in a batch. @@
Fields§
§kind: i32
@@ .. cpp:var:: Kind kind @@ @@ The kind of this batch input. @@
target_name: Vec<String>
@@ .. cpp:var:: string target_name (repeated) @@ @@ The name of the model inputs that the backend will create @@ for this batch input. @@
data_type: i32
@@ .. cpp:var:: DataType data_type @@ @@ The input’s datatype. The data type can be TYPE_INT32 or @@ TYPE_FP32. @@
source_input: Vec<String>
@@ .. cpp:var:: string source_input (repeated) @@ @@ The backend derives the value for each batch input from one or @@ more other inputs. ‘source_input’ gives the names of those @@ inputs. @@
Implementations§
Source§impl BatchInput
impl BatchInput
Sourcepub fn kind(&self) -> Kind
pub fn kind(&self) -> Kind
Returns the enum value of kind
, or the default if the field is set to an invalid enum value.
Sourcepub fn data_type(&self) -> DataType
pub fn data_type(&self) -> DataType
Returns the enum value of data_type
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_data_type(&mut self, value: DataType)
pub fn set_data_type(&mut self, value: DataType)
Sets data_type
to the provided enum value.
Trait Implementations§
Source§impl Clone for BatchInput
impl Clone for BatchInput
Source§fn clone(&self) -> BatchInput
fn clone(&self) -> BatchInput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for BatchInput
impl Debug for BatchInput
Source§impl Default for BatchInput
impl Default for BatchInput
Source§impl Message for BatchInput
impl Message for BatchInput
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
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,
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
self
.Source§impl PartialEq for BatchInput
impl PartialEq for BatchInput
impl StructuralPartialEq for BatchInput
Auto Trait Implementations§
impl Freeze for BatchInput
impl RefUnwindSafe for BatchInput
impl Send for BatchInput
impl Sync for BatchInput
impl Unpin for BatchInput
impl UnwindSafe for BatchInput
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> 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