Struct google_api_proto::google::cloud::documentai::v1::ProcessorType
source · pub struct ProcessorType {
pub name: String,
pub type: String,
pub category: String,
pub available_locations: Vec<LocationInfo>,
pub allow_creation: bool,
pub launch_stage: i32,
pub sample_document_uris: Vec<String>,
}
Expand description
A processor type is responsible for performing a certain document understanding task on a certain type of document.
Fields§
§name: String
The resource name of the processor type.
Format: projects/{project}/processorTypes/{processor_type}
type: String
The processor type, such as: OCR_PROCESSOR
, INVOICE_PROCESSOR
.
category: String
The processor category, used by UI to group processor types.
available_locations: Vec<LocationInfo>
The locations in which this processor is available.
allow_creation: bool
Whether the processor type allows creation. If true, users can create a processor of this processor type. Otherwise, users need to request access.
launch_stage: i32
Launch stage of the processor type
sample_document_uris: Vec<String>
A set of Cloud Storage URIs of sample documents for this processor.
Implementations§
source§impl ProcessorType
impl ProcessorType
sourcepub fn launch_stage(&self) -> LaunchStage
pub fn launch_stage(&self) -> LaunchStage
Returns the enum value of launch_stage
, or the default if the field is set to an invalid enum value.
sourcepub fn set_launch_stage(&mut self, value: LaunchStage)
pub fn set_launch_stage(&mut self, value: LaunchStage)
Sets launch_stage
to the provided enum value.
Trait Implementations§
source§impl Clone for ProcessorType
impl Clone for ProcessorType
source§fn clone(&self) -> ProcessorType
fn clone(&self) -> ProcessorType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ProcessorType
impl Debug for ProcessorType
source§impl Default for ProcessorType
impl Default for ProcessorType
source§impl Message for ProcessorType
impl Message for ProcessorType
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
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<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for ProcessorType
impl PartialEq for ProcessorType
source§fn eq(&self, other: &ProcessorType) -> bool
fn eq(&self, other: &ProcessorType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ProcessorType
Auto Trait Implementations§
impl Freeze for ProcessorType
impl RefUnwindSafe for ProcessorType
impl Send for ProcessorType
impl Sync for ProcessorType
impl Unpin for ProcessorType
impl UnwindSafe for ProcessorType
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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