pub struct Pm25Input {
pub date: Option<Date>,
pub pagination_token: Option<String>,
pub x_api_key: Option<String>,
}Expand description
https://api-open.data.gov.sg/v2/real-time/api/pm25
-
Readings are provided for each major region in Singapore
-
Filter for a specific date by providing
datein query parameter (YYYY-MM-DD). -
example:
?date=2024-07-16 -
If
dateis not provided in query parameter, API will return the latest reading -
The
region_metadatafield in the response provides longitude/latitude information for the regions. You can use that to place the readings on a map. -
Unit of measure for readings is
µg/m3.
Fields§
§date: Option<Date>SGT date for which to retrieve data (YYYY-MM-DD). Omit for latest.
pagination_token: Option<String>Pagination token for subsequent pages (only when date filter is used and more pages exist).
x_api_key: Option<String>Optional API key for higher rate limits.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Pm25Input
Auto Trait Implementations§
impl Freeze for Pm25Input
impl RefUnwindSafe for Pm25Input
impl Send for Pm25Input
impl Sync for Pm25Input
impl Unpin for Pm25Input
impl UnsafeUnpin for Pm25Input
impl UnwindSafe for Pm25Input
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more