fej/src/ivago/controller/pickup_times.rs

24 lines
535 B
Rust

use super::search::Street;
use chrono::NaiveDate;
use std::error::Error;
const BASE_URL: &str = "https://www.ivago.be/nl/particulier/afval/ophaling";
/// Represents a pickup time instance. All fields are a direct map of the
/// original API
pub struct PickupTime {
date: NaiveDate,
label: String,
classes: Vec<String>,
url: String,
}
pub fn get_pickup_times(
street: Street,
number: u64,
start_date: NaiveDate,
end_date: NaiveDate,
) -> Result<Vec<PickupTime>, Box<dyn Error>> {
Ok(Vec::new())
}