Skip to main content

lta/
taxi.rs

1// @generated by satay. Do not edit by hand.
2#![allow(
3    clippy::doc_markdown,
4    clippy::missing_errors_doc,
5    clippy::must_use_candidate,
6    clippy::needless_pass_by_value,
7    clippy::return_self_not_must_use,
8    clippy::single_match_else
9)]
10
11use super::{Api as RootApi, GetTaxiAvailabilityAction};
12/// Taxi related operations.
13#[derive(Debug, Clone, Copy)]
14pub struct Api<'a> {
15    pub(crate) api: &'a RootApi,
16}
17impl<'a> Api<'a> {
18    /// Returns the coordinates of all taxis currently available for hire.
19    ///
20    /// **Update freq**: 1 min
21    ///
22    /// # Optional request settings
23    ///
24    /// - [`skip`](GetTaxiAvailabilityAction::skip): Number of records to skip for pagination.
25    ///
26    /// # Example
27    ///
28    /// ```rust,ignore
29    /// let request = api
30    ///     .taxi()
31    ///     .get_availability()
32    ///     .skip(skip)
33    ///     .request()?;
34    /// ```
35    pub fn get_availability(&self) -> GetTaxiAvailabilityAction<'a> {
36        GetTaxiAvailabilityAction::new(self.api)
37    }
38}