#[non_exhaustive]pub struct ProcessResponse {
pub document: Option<Document>,
pub human_review_status: Option<HumanReviewStatus>,
/* private fields */
}Expand description
Response message for the ProcessDocument method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.document: Option<Document>The document payload, will populate fields based on the processor’s behavior.
human_review_status: Option<HumanReviewStatus>The status of human review on the processed document.
Implementations§
Source§impl ProcessResponse
impl ProcessResponse
pub fn new() -> Self
Sourcepub fn set_document<T>(self, v: T) -> Self
pub fn set_document<T>(self, v: T) -> Self
Sets the value of document.
Sourcepub fn set_or_clear_document<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_document<T>(self, v: Option<T>) -> Self
Sets or clears the value of document.
Sourcepub fn set_human_review_status<T>(self, v: T) -> Selfwhere
T: Into<HumanReviewStatus>,
pub fn set_human_review_status<T>(self, v: T) -> Selfwhere
T: Into<HumanReviewStatus>,
Sets the value of human_review_status.
Sourcepub fn set_or_clear_human_review_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<HumanReviewStatus>,
pub fn set_or_clear_human_review_status<T>(self, v: Option<T>) -> Selfwhere
T: Into<HumanReviewStatus>,
Sets or clears the value of human_review_status.
Trait Implementations§
Source§impl Clone for ProcessResponse
impl Clone for ProcessResponse
Source§fn clone(&self) -> ProcessResponse
fn clone(&self) -> ProcessResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessResponse
impl Debug for ProcessResponse
Source§impl Default for ProcessResponse
impl Default for ProcessResponse
Source§fn default() -> ProcessResponse
fn default() -> ProcessResponse
Returns the “default value” for a type. Read more
Source§impl Message for ProcessResponse
impl Message for ProcessResponse
Source§impl PartialEq for ProcessResponse
impl PartialEq for ProcessResponse
impl StructuralPartialEq for ProcessResponse
Auto Trait Implementations§
impl !Freeze for ProcessResponse
impl RefUnwindSafe for ProcessResponse
impl Send for ProcessResponse
impl Sync for ProcessResponse
impl Unpin for ProcessResponse
impl UnwindSafe for ProcessResponse
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
Mutably borrows from an owned value. Read more