pub struct TrainProcessorVersion(/* private fields */);Expand description
The request builder for DocumentProcessorService::train_processor_version calls.
§Example
use builder::document_processor_service::TrainProcessorVersion;
use lro::Poller;
let builder = prepare_request_builder();
let response = builder.poller().until_done().await?;
fn prepare_request_builder() -> TrainProcessorVersion {
// ... details omitted ...
}Implementations§
Source§impl TrainProcessorVersion
impl TrainProcessorVersion
Sourcepub fn with_request<V: Into<TrainProcessorVersionRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<TrainProcessorVersionRequest>>(self, v: V) -> Self
Sets the full request, replacing any prior values.
Sourcepub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
pub fn with_options<V: Into<RequestOptions>>(self, v: V) -> Self
Sets all the options, replacing any prior values.
Sourcepub async fn send(self) -> Result<Operation>
pub async fn send(self) -> Result<Operation>
Sends the request.
§Long running operations
This starts, but does not poll, a longrunning operation. More information on train_processor_version.
Sourcepub fn poller(
self,
) -> impl Poller<TrainProcessorVersionResponse, TrainProcessorVersionMetadata>
pub fn poller( self, ) -> impl Poller<TrainProcessorVersionResponse, TrainProcessorVersionMetadata>
Creates a Poller to work with train_processor_version.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
This is a required field for requests.
Sourcepub fn set_processor_version<T>(self, v: T) -> Selfwhere
T: Into<ProcessorVersion>,
pub fn set_processor_version<T>(self, v: T) -> Selfwhere
T: Into<ProcessorVersion>,
Sets the value of processor_version.
This is a required field for requests.
Sourcepub fn set_or_clear_processor_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcessorVersion>,
pub fn set_or_clear_processor_version<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcessorVersion>,
Sets or clears the value of processor_version.
This is a required field for requests.
Sourcepub fn set_document_schema<T>(self, v: T) -> Selfwhere
T: Into<DocumentSchema>,
pub fn set_document_schema<T>(self, v: T) -> Selfwhere
T: Into<DocumentSchema>,
Sets the value of document_schema.
Sourcepub fn set_or_clear_document_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentSchema>,
pub fn set_or_clear_document_schema<T>(self, v: Option<T>) -> Selfwhere
T: Into<DocumentSchema>,
Sets or clears the value of document_schema.
Sourcepub fn set_input_data<T>(self, v: T) -> Self
pub fn set_input_data<T>(self, v: T) -> Self
Sets the value of input_data.
Sourcepub fn set_or_clear_input_data<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_input_data<T>(self, v: Option<T>) -> Self
Sets or clears the value of input_data.
Sourcepub fn set_base_processor_version<T: Into<String>>(self, v: T) -> Self
pub fn set_base_processor_version<T: Into<String>>(self, v: T) -> Self
Sets the value of base_processor_version.
Sourcepub fn set_processor_flags<T: Into<Option<ProcessorFlags>>>(self, v: T) -> Self
pub fn set_processor_flags<T: Into<Option<ProcessorFlags>>>(self, v: T) -> Self
Sets the value of processor_flags.
Note that all the setters affecting processor_flags are
mutually exclusive.
Sourcepub fn set_custom_document_extraction_options<T: Into<Box<CustomDocumentExtractionOptions>>>(
self,
v: T,
) -> Self
pub fn set_custom_document_extraction_options<T: Into<Box<CustomDocumentExtractionOptions>>>( self, v: T, ) -> Self
Sets the value of processor_flags
to hold a CustomDocumentExtractionOptions.
Note that all the setters affecting processor_flags are
mutually exclusive.
Sourcepub fn set_foundation_model_tuning_options<T: Into<Box<FoundationModelTuningOptions>>>(
self,
v: T,
) -> Self
pub fn set_foundation_model_tuning_options<T: Into<Box<FoundationModelTuningOptions>>>( self, v: T, ) -> Self
Sets the value of processor_flags
to hold a FoundationModelTuningOptions.
Note that all the setters affecting processor_flags are
mutually exclusive.
Trait Implementations§
Source§impl Clone for TrainProcessorVersion
impl Clone for TrainProcessorVersion
Source§fn clone(&self) -> TrainProcessorVersion
fn clone(&self) -> TrainProcessorVersion
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for TrainProcessorVersion
impl !RefUnwindSafe for TrainProcessorVersion
impl Send for TrainProcessorVersion
impl Sync for TrainProcessorVersion
impl Unpin for TrainProcessorVersion
impl !UnwindSafe for TrainProcessorVersion
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
impl<T> RequestOptionsBuilder for Twhere
T: RequestBuilder,
Source§fn with_idempotency(self, v: bool) -> T
fn with_idempotency(self, v: bool) -> T
v is true, treat the RPC underlying this method as idempotent.