Struct google_vision1::api::Result
source · pub struct Result {
pub image: Option<String>,
pub product: Option<Product>,
pub score: Option<f32>,
}
Expand description
Information about a product.
This type is not used in any activity, and only used as part of another schema.
Fields§
§image: Option<String>
The resource name of the image from the product that is the closest match to the query.
product: Option<Product>
The Product.
score: Option<f32>
A confidence level on the match, ranging from 0 (no confidence) to 1 (full confidence).
Trait Implementations§
source§impl<'de> Deserialize<'de> for Result
impl<'de> Deserialize<'de> for Result
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 Result
Auto Trait Implementations§
impl RefUnwindSafe for Result
impl Send for Result
impl Sync for Result
impl Unpin for Result
impl UnwindSafe for Result
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