pub struct CustomProcessorSourceInfo {
pub source_type: i32,
pub additional_info: HashMap<String, String>,
pub model_schema: Option<ModelSchema>,
pub artifact_path: Option<ArtifactPath>,
}Expand description
Describes the source info for a custom processor.
Fields§
§source_type: i32The original product which holds the custom processor’s functionality.
additional_info: HashMap<String, String>Output only. Additional info related to the imported custom processor. Data is filled in by app platform during the processor creation.
model_schema: Option<ModelSchema>Model schema files which specifies the signature of the model. For VERTEX_CUSTOM models, instances schema is required. If instances schema is not specified during the processor creation, VisionAI Platform will try to get it from Vertex, if it doesn’t exist, the creation will fail.
artifact_path: Option<ArtifactPath>The path where App Platform loads the artifacts for the custom processor.
Implementations§
Source§impl CustomProcessorSourceInfo
impl CustomProcessorSourceInfo
Sourcepub fn source_type(&self) -> SourceType
pub fn source_type(&self) -> SourceType
Returns the enum value of source_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_source_type(&mut self, value: SourceType)
pub fn set_source_type(&mut self, value: SourceType)
Sets source_type to the provided enum value.
Trait Implementations§
Source§impl Clone for CustomProcessorSourceInfo
impl Clone for CustomProcessorSourceInfo
Source§fn clone(&self) -> CustomProcessorSourceInfo
fn clone(&self) -> CustomProcessorSourceInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CustomProcessorSourceInfo
impl Debug for CustomProcessorSourceInfo
Source§impl Default for CustomProcessorSourceInfo
impl Default for CustomProcessorSourceInfo
Source§impl<'de> Deserialize<'de> for CustomProcessorSourceInfo
impl<'de> Deserialize<'de> for CustomProcessorSourceInfo
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 CustomProcessorSourceInfo
impl Message for CustomProcessorSourceInfo
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.