#[non_exhaustive]pub struct AsyncAnnotateFileRequest {
pub input_config: Option<InputConfig>,
pub features: Vec<Feature>,
pub image_context: Option<ImageContext>,
pub output_config: Option<OutputConfig>,
/* private fields */
}Expand description
An offline file annotation request.
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>Required. Information about the input file.
features: Vec<Feature>Required. Requested features.
image_context: Option<ImageContext>Additional context that may accompany the image(s) in the file.
output_config: Option<OutputConfig>Required. The desired output location and metadata (e.g. format).
Implementations§
Source§impl AsyncAnnotateFileRequest
impl AsyncAnnotateFileRequest
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_features<T, V>(self, v: T) -> Self
pub fn set_features<T, V>(self, v: T) -> Self
Sets the value of features.
Sourcepub fn set_image_context<T>(self, v: T) -> Selfwhere
T: Into<ImageContext>,
pub fn set_image_context<T>(self, v: T) -> Selfwhere
T: Into<ImageContext>,
Sets the value of image_context.
Sourcepub fn set_or_clear_image_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImageContext>,
pub fn set_or_clear_image_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<ImageContext>,
Sets or clears the value of image_context.
Sourcepub fn set_output_config<T>(self, v: T) -> Selfwhere
T: Into<OutputConfig>,
pub fn set_output_config<T>(self, v: T) -> Selfwhere
T: Into<OutputConfig>,
Sets the value of output_config.
Sourcepub fn set_or_clear_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputConfig>,
pub fn set_or_clear_output_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<OutputConfig>,
Sets or clears the value of output_config.
Trait Implementations§
Source§impl Clone for AsyncAnnotateFileRequest
impl Clone for AsyncAnnotateFileRequest
Source§fn clone(&self) -> AsyncAnnotateFileRequest
fn clone(&self) -> AsyncAnnotateFileRequest
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 AsyncAnnotateFileRequest
impl Debug for AsyncAnnotateFileRequest
Source§impl Default for AsyncAnnotateFileRequest
impl Default for AsyncAnnotateFileRequest
Source§fn default() -> AsyncAnnotateFileRequest
fn default() -> AsyncAnnotateFileRequest
Returns the “default value” for a type. Read more
Source§impl Message for AsyncAnnotateFileRequest
impl Message for AsyncAnnotateFileRequest
Source§impl PartialEq for AsyncAnnotateFileRequest
impl PartialEq for AsyncAnnotateFileRequest
impl StructuralPartialEq for AsyncAnnotateFileRequest
Auto Trait Implementations§
impl !Freeze for AsyncAnnotateFileRequest
impl RefUnwindSafe for AsyncAnnotateFileRequest
impl Send for AsyncAnnotateFileRequest
impl Sync for AsyncAnnotateFileRequest
impl Unpin for AsyncAnnotateFileRequest
impl UnwindSafe for AsyncAnnotateFileRequest
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