Struct google_vision1::api::KeyValue
source · pub struct KeyValue {
pub key: Option<String>,
pub value: Option<String>,
}
Expand description
A product label represented as a key-value pair.
This type is not used in any activity, and only used as part of another schema.
Fields§
§key: Option<String>
The key of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
value: Option<String>
The value of the label attached to the product. Cannot be empty and cannot exceed 128 bytes.
Trait Implementations§
source§impl<'de> Deserialize<'de> for KeyValue
impl<'de> Deserialize<'de> for KeyValue
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
impl Part for KeyValue
Auto Trait Implementations§
impl RefUnwindSafe for KeyValue
impl Send for KeyValue
impl Sync for KeyValue
impl Unpin for KeyValue
impl UnwindSafe for KeyValue
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