pub struct ProcessDocument(/* private fields */);Expand description
The request builder for DocumentProcessorService::process_document calls.
§Example
use builder::document_processor_service::ProcessDocument;
let builder = prepare_request_builder();
let response = builder.send().await?;
fn prepare_request_builder() -> ProcessDocument {
// ... details omitted ...
}Implementations§
Source§impl ProcessDocument
impl ProcessDocument
Sourcepub fn with_request<V: Into<ProcessRequest>>(self, v: V) -> Self
pub fn with_request<V: Into<ProcessRequest>>(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<ProcessResponse>
pub async fn send(self) -> Result<ProcessResponse>
Sends the request.
Sourcepub fn set_name<T: Into<String>>(self, v: T) -> Self
pub fn set_name<T: Into<String>>(self, v: T) -> Self
Sets the value of name.
This is a required field for requests.
Sourcepub fn set_skip_human_review<T: Into<bool>>(self, v: T) -> Self
pub fn set_skip_human_review<T: Into<bool>>(self, v: T) -> Self
Sets the value of skip_human_review.
Sourcepub fn set_field_mask<T>(self, v: T) -> Self
pub fn set_field_mask<T>(self, v: T) -> Self
Sets the value of field_mask.
Sourcepub fn set_or_clear_field_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_field_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of field_mask.
Sourcepub fn set_process_options<T>(self, v: T) -> Selfwhere
T: Into<ProcessOptions>,
pub fn set_process_options<T>(self, v: T) -> Selfwhere
T: Into<ProcessOptions>,
Sets the value of process_options.
Sourcepub fn set_or_clear_process_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcessOptions>,
pub fn set_or_clear_process_options<T>(self, v: Option<T>) -> Selfwhere
T: Into<ProcessOptions>,
Sets or clears the value of process_options.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_imageless_mode<T: Into<bool>>(self, v: T) -> Self
pub fn set_imageless_mode<T: Into<bool>>(self, v: T) -> Self
Sets the value of imageless_mode.
Sourcepub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
pub fn set_source<T: Into<Option<Source>>>(self, v: T) -> Self
Sets the value of source.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_inline_document<T: Into<Box<Document>>>(self, v: T) -> Self
pub fn set_inline_document<T: Into<Box<Document>>>(self, v: T) -> Self
Sets the value of source
to hold a InlineDocument.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_raw_document<T: Into<Box<RawDocument>>>(self, v: T) -> Self
pub fn set_raw_document<T: Into<Box<RawDocument>>>(self, v: T) -> Self
Sets the value of source
to hold a RawDocument.
Note that all the setters affecting source are
mutually exclusive.
Sourcepub fn set_gcs_document<T: Into<Box<GcsDocument>>>(self, v: T) -> Self
pub fn set_gcs_document<T: Into<Box<GcsDocument>>>(self, v: T) -> Self
Sets the value of source
to hold a GcsDocument.
Note that all the setters affecting source are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ProcessDocument
impl Clone for ProcessDocument
Source§fn clone(&self) -> ProcessDocument
fn clone(&self) -> ProcessDocument
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 ProcessDocument
impl !RefUnwindSafe for ProcessDocument
impl Send for ProcessDocument
impl Sync for ProcessDocument
impl Unpin for ProcessDocument
impl !UnwindSafe for ProcessDocument
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.