#[non_exhaustive]pub struct AsyncBatchAnnotateFilesRequest {
pub requests: Vec<AsyncAnnotateFileRequest>,
pub parent: String,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
Multiple async file annotation requests are batched into a single service call.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.requests: Vec<AsyncAnnotateFileRequest>Required. Individual async file annotation requests for this batch.
parent: StringOptional. Target project and location to make a call.
Format: projects/{project-id}/locations/{location-id}.
If no parent is specified, a region will be chosen automatically.
Supported location-ids:
us: USA country only,
asia: East asia areas, like Japan, Taiwan,
eu: The European Union.
Example: projects/project-A/locations/eu.
labels: HashMap<String, String>Optional. The labels with user-defined metadata for the request.
Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter.
Implementations§
Source§impl AsyncBatchAnnotateFilesRequest
impl AsyncBatchAnnotateFilesRequest
pub fn new() -> Self
Sourcepub fn set_requests<T, V>(self, v: T) -> Self
pub fn set_requests<T, V>(self, v: T) -> Self
Sets the value of requests.
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
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.
Trait Implementations§
Source§impl Clone for AsyncBatchAnnotateFilesRequest
impl Clone for AsyncBatchAnnotateFilesRequest
Source§fn clone(&self) -> AsyncBatchAnnotateFilesRequest
fn clone(&self) -> AsyncBatchAnnotateFilesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for AsyncBatchAnnotateFilesRequest
impl Default for AsyncBatchAnnotateFilesRequest
Source§fn default() -> AsyncBatchAnnotateFilesRequest
fn default() -> AsyncBatchAnnotateFilesRequest
Source§impl PartialEq for AsyncBatchAnnotateFilesRequest
impl PartialEq for AsyncBatchAnnotateFilesRequest
Source§fn eq(&self, other: &AsyncBatchAnnotateFilesRequest) -> bool
fn eq(&self, other: &AsyncBatchAnnotateFilesRequest) -> bool
self and other values to be equal, and is used by ==.