Struct google_vision1::api::InputConfig
source · pub struct InputConfig {
pub content: Option<Vec<u8>>,
pub gcs_source: Option<GcsSource>,
pub mime_type: Option<String>,
}
Expand description
The desired input location and metadata.
This type is not used in any activity, and only used as part of another schema.
Fields§
§content: Option<Vec<u8>>
File content, represented as a stream of bytes. Note: As with all bytes
fields, protobuffers use a pure binary representation, whereas JSON representations use base64. Currently, this field only works for BatchAnnotateFiles requests. It does not work for AsyncBatchAnnotateFiles requests.
gcs_source: Option<GcsSource>
The Google Cloud Storage location to read the input from.
mime_type: Option<String>
The type of the file. Currently only “application/pdf”, “image/tiff” and “image/gif” are supported. Wildcards are not supported.
Trait Implementations§
source§impl Clone for InputConfig
impl Clone for InputConfig
source§fn clone(&self) -> InputConfig
fn clone(&self) -> InputConfig
Returns a copy 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 InputConfig
impl Debug for InputConfig
source§impl Default for InputConfig
impl Default for InputConfig
source§fn default() -> InputConfig
fn default() -> InputConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InputConfig
impl<'de> Deserialize<'de> for InputConfig
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 InputConfig
impl Serialize for InputConfig
impl Part for InputConfig
Auto Trait Implementations§
impl RefUnwindSafe for InputConfig
impl Send for InputConfig
impl Sync for InputConfig
impl Unpin for InputConfig
impl UnwindSafe for InputConfig
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