#[non_exhaustive]pub struct BatchAnnotateFilesRequest {
pub requests: Vec<AnnotateFileRequest>,
pub parent: String,
pub labels: HashMap<String, String>,
/* private fields */
}Expand description
A list of requests to annotate files using the BatchAnnotateFiles API.
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<AnnotateFileRequest>Required. The list of file annotation requests. Right now we support only one AnnotateFileRequest in BatchAnnotateFilesRequest.
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 BatchAnnotateFilesRequest
impl BatchAnnotateFilesRequest
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 BatchAnnotateFilesRequest
impl Clone for BatchAnnotateFilesRequest
Source§fn clone(&self) -> BatchAnnotateFilesRequest
fn clone(&self) -> BatchAnnotateFilesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more