20 lines
373 B
Rust
20 lines
373 B
Rust
|
const BASE_URL: &str = "https://www.ivago.be/nl/particulier/afval/ophaling";
|
||
|
|
||
|
|
||
|
/// Represents a timezoneless date
|
||
|
pub struct Date {
|
||
|
day: u8,
|
||
|
month: u8,
|
||
|
year: u32,
|
||
|
}
|
||
|
|
||
|
|
||
|
/// Represents a pickup time instance. All fields are a direct map of the
|
||
|
/// original API
|
||
|
pub struct PickupTime {
|
||
|
date: Date,
|
||
|
label: String,
|
||
|
classes: Vec<String>,
|
||
|
url: String
|
||
|
}
|