#[non_exhaustive]pub struct AnnotateFileResponse {
pub input_config: Option<InputConfig>,
pub responses: Vec<AnnotateImageResponse>,
pub total_pages: i32,
pub error: Option<Status>,
/* private fields */
}Expand description
Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
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.input_config: Option<InputConfig>Information about the file for which this response is generated.
responses: Vec<AnnotateImageResponse>Individual responses to images found within the file. This field will be
empty if the error field is set.
total_pages: i32This field gives the total number of pages in the file.
error: Option<Status>If set, represents the error message for the failed request. The
responses field will not be set in this case.
Implementations§
Source§impl AnnotateFileResponse
impl AnnotateFileResponse
pub fn new() -> Self
Sourcepub fn set_input_config<T>(self, v: T) -> Selfwhere
T: Into<InputConfig>,
pub fn set_input_config<T>(self, v: T) -> Selfwhere
T: Into<InputConfig>,
Sets the value of input_config.
Sourcepub fn set_or_clear_input_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputConfig>,
pub fn set_or_clear_input_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<InputConfig>,
Sets or clears the value of input_config.
Sourcepub fn set_responses<T, V>(self, v: T) -> Self
pub fn set_responses<T, V>(self, v: T) -> Self
Sets the value of responses.
Sourcepub fn set_total_pages<T: Into<i32>>(self, v: T) -> Self
pub fn set_total_pages<T: Into<i32>>(self, v: T) -> Self
Sets the value of total_pages.
Trait Implementations§
Source§impl Clone for AnnotateFileResponse
impl Clone for AnnotateFileResponse
Source§fn clone(&self) -> AnnotateFileResponse
fn clone(&self) -> AnnotateFileResponse
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 AnnotateFileResponse
impl Debug for AnnotateFileResponse
Source§impl Default for AnnotateFileResponse
impl Default for AnnotateFileResponse
Source§fn default() -> AnnotateFileResponse
fn default() -> AnnotateFileResponse
Returns the “default value” for a type. Read more
Source§impl Message for AnnotateFileResponse
impl Message for AnnotateFileResponse
Source§impl PartialEq for AnnotateFileResponse
impl PartialEq for AnnotateFileResponse
impl StructuralPartialEq for AnnotateFileResponse
Auto Trait Implementations§
impl !Freeze for AnnotateFileResponse
impl RefUnwindSafe for AnnotateFileResponse
impl Send for AnnotateFileResponse
impl Sync for AnnotateFileResponse
impl Unpin for AnnotateFileResponse
impl UnwindSafe for AnnotateFileResponse
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