pub fn product(&self, barcode: &str, output: Option<Output>) -> OffResult {
        let api_url = self.api_url(output.as_ref().and_then(|o| o.locale.as_ref()))?;
        let url = api_url.join(&format!("product/{}", barcode))?;
        let params = output.map(|o| o.params(&["fields"]));
        self.get(url, params.as_ref())
    }
/// Get the nutrition facts of the given product.
///
/// # OFF API request
///
/// ```ignore
/// GET https://{locale}.openfoodfacts.org/api/{version}/product/{barcode}
/// ```
///
/// # Arguments
///
/// * barcode - The product barcode.
/// * output - Optional output parameters. This call only supports the locale
///     and fields parameters.
Get the nutrition facts of the given product.
Get the nutrition facts of the given product .
pub fn product(&self, barcode: &str, output: Option<Output>) -> OffResult {
        let api_url = self.api_url(output.as_ref().and_then(|o| o.locale.as_ref()))?;
        let url = api_url.join(&format!("product/{}", barcode))?;
        let params = output.map(|o| o.params(&["fields"]));
        self.get(url, params.as_ref())
    }
pub fn product ( & self , barcode : & str , output : Option < Output > ) -> OffResult { let api_url = self . api_url ( output . as_ref ( ) . and_then ( | o | o . locale . as_ref ( ) ) ) ? ; let url = api_url . join ( & format ! ( " " barcode ) ) ? ; let params = output . map ( | o | o . params ( & [ " " ] ) ) ; self . get ( url , params . as_ref ( ) ) }
Get the nutrition facts of the given product.
Get the nutrition facts of the given product .
&self
barcode
&str
output
Option<Output>
&self
barcode
&str
output
Option<Output>
off api request
```ignore
GET https://{locale}.openfoodfacts.org/api/{version}/product/{barcode}
```
` ` ` ignore GET https : // { locale } . openfoodfacts . org / api / { version } / product / { barcode } ` ` `