1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
use crate::directions::request::Request; impl<'a> Request<'a> { /// Specify whether service may provide more than one route alternative in /// the response. /// /// ## Arguments: /// /// * `alternatives` ‧ Whether more than one route should be in Google's /// response. /// /// ## Description /// /// If set to `true`, specifies that the Directions service may provide more /// than one route alternative in the response. Note that providing route /// alternatives may increase the response time from the server. This is /// only available for requests without intermediate waypoints. /// /// ## Example: /// /// * Allow more than one route in the response: /// ```rust /// .with_alternatives(true) /// ``` pub fn with_alternatives(&'a mut self, alternatives: bool) -> &'a mut Request { self.alternatives = Some(alternatives); self } // fn } // impl