google_maps2 3.5.3

An unofficial Google Maps Platform client library for the Rust programming language.
Documentation
use crate::time_zone::request::Request;
use crate::types::Language;

// -----------------------------------------------------------------------------

impl<'a> Request<'a> {
    /// Adds the language parameter to the Time Zone API query.
    ///
    /// ## Arguments
    ///
    /// * `language` ‧ The language that Google's response should be presented
    /// in.
    ///
    /// ## Example
    ///
    /// * Set Google's response to the French language:
    /// ```rust
    /// .with_language(Language::French)
    /// ```

    pub fn with_language(&'a mut self, language: Language) -> &'a mut Self {
        // Set language in Request struct.
        self.language = Some(language);
        // Return modified Request struct to caller.
        self
    } // fn
} // impl