pub struct TwoHrForecastInput {
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/two-hr-forecast
-
Forecasts are given for multiple areas in Singapore
-
Filter for specific date or date-time by providing
datein query parameter (YYYY-MM-DD or YYYY-MM-DDTHH:MM:SS). -
example:
?date=2024-07-16or?date=2024-07-16T23:59:00 -
Forecasts are valid for two hours, for example, the validity period of the forecast at 1pm is 1pm to 3pm
-
If
dateis not provided in query parameter, API will return the latest reading
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§
Source§impl Clone for TwoHrForecastInput
impl Clone for TwoHrForecastInput
Source§fn clone(&self) -> TwoHrForecastInput
fn clone(&self) -> TwoHrForecastInput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TwoHrForecastInput
impl Debug for TwoHrForecastInput
Source§impl Default for TwoHrForecastInput
impl Default for TwoHrForecastInput
Source§impl PartialEq for TwoHrForecastInput
impl PartialEq for TwoHrForecastInput
impl StructuralPartialEq for TwoHrForecastInput
Auto Trait Implementations§
impl Freeze for TwoHrForecastInput
impl RefUnwindSafe for TwoHrForecastInput
impl Send for TwoHrForecastInput
impl Sync for TwoHrForecastInput
impl Unpin for TwoHrForecastInput
impl UnsafeUnpin for TwoHrForecastInput
impl UnwindSafe for TwoHrForecastInput
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