google_maps 3.9.5

An unofficial Google Maps Platform client library for the Rust programming language.
Documentation
impl crate::geocoding::ForwardRequest<'_> {
    /// Specifies the street address to geocode.
    ///
    /// ## Arguments
    ///
    /// * `address` - The street address that you want to geocode, in the format
    ///   used by the national postal service of the country concerned.
    ///   Additional address elements such as business names and unit, suite or
    ///   floor numbers hould be avoided. Please refer to [the
    ///   FAQ](https://developers.google.com/maps/faq#geocoder_queryformat) for
    ///   additional guidance.
    ///
    /// ## Example
    ///
    /// ```rust
    /// .with_address(String::from(
    ///     "1313 Disneyland Dr, Anaheim, CA 92802, United States"
    /// ))
    /// ```
    #[must_use] pub fn with_address(
        mut self,
        address: impl Into<String>
    ) -> Self {
        // Set address in ForwardRequest struct.
        self.address = Some(address.into());
        // Return modified ForwardRequest struct to caller.
        self
    } // fn
} // impl