pub struct GraphInputChannelSpec {
pub name: String,
pub data_type: i32,
pub accepted_data_type_uris: Vec<String>,
pub required: bool,
pub max_connection_allowed: i64,
}Expand description
Message for input channel specification.
Fields§
§name: StringThe name of the current input channel.
data_type: i32The data types of the current input channel. When this field has more than 1 value, it means this input channel can be connected to either of these different data types.
accepted_data_type_uris: Vec<String>If specified, only those detailed data types can be connected to the processor. For example, jpeg stream for MEDIA, or PredictionResult proto for PROTO type. If unspecified, then any proto is accepted.
required: boolWhether the current input channel is required by the processor. For example, for a processor with required video input and optional audio input, if video input is missing, the application will be rejected while the audio input can be missing as long as the video input exists.
max_connection_allowed: i64How many input edges can be connected to this input channel. 0 means unlimited.
Implementations§
Trait Implementations§
Source§impl Clone for GraphInputChannelSpec
impl Clone for GraphInputChannelSpec
Source§fn clone(&self) -> GraphInputChannelSpec
fn clone(&self) -> GraphInputChannelSpec
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GraphInputChannelSpec
impl Debug for GraphInputChannelSpec
Source§impl Default for GraphInputChannelSpec
impl Default for GraphInputChannelSpec
Source§impl<'de> Deserialize<'de> for GraphInputChannelSpec
impl<'de> Deserialize<'de> for GraphInputChannelSpec
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Message for GraphInputChannelSpec
impl Message for GraphInputChannelSpec
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self.