| 1 | use crate::{Journey, TariffClass}; |
| 2 | |
| 3 | #[derive(Debug, Default)] |
| 4 | /// The options for [`Provider::refresh_journey`](crate::Provider::refresh_journey) |
| 5 | /// |
| 6 | /// A provider can also ignore some of the options if this is not supported by the API. |
| 7 | pub struct RefreshJourneyOptions { |
| 8 | /// Whether to include stopovers. |
| 9 | pub stopovers: bool, |
| 10 | #[cfg(feature = "polylines")] |
| 11 | /// Whether to include polylines. |
| 12 | pub polylines: bool, |
| 13 | /// Include tickets. |
| 14 | pub tickets: bool, |
| 15 | /// What class to use. |
| 16 | pub tariff_class: TariffClass, |
| 17 | /// What language to query with. |
| 18 | pub language: Option<String>, |
| 19 | } |
| 20 | |
| 21 | /// The result for [`Provider::refresh_journey`](crate::Provider::refresh_journey) |
| 22 | pub type RefreshJourneyResponse = Journey; |