pub struct AnnotateFileResponse {
pub error: Option<Status>,
pub input_config: Option<InputConfig>,
pub responses: Option<Vec<AnnotateImageResponse>>,
pub total_pages: Option<i32>,
}Expand description
Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
This type is not used in any activity, and only used as part of another schema.
Fields§
§error: Option<Status>If set, represents the error message for the failed request. The responses field will not be set in this case.
input_config: Option<InputConfig>Information about the file for which this response is generated.
responses: Option<Vec<AnnotateImageResponse>>Individual responses to images found within the file. This field will be empty if the error field is set.
total_pages: Option<i32>This field gives the total number of pages in the file.
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<'de> Deserialize<'de> for AnnotateFileResponse
impl<'de> Deserialize<'de> for AnnotateFileResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for AnnotateFileResponse
impl Serialize for AnnotateFileResponse
impl Part 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