pub struct RelativeHumidityInput {
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/relative-humidity
-
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 -
Unit of measure for readings is
%
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 RelativeHumidityInput
impl Clone for RelativeHumidityInput
Source§fn clone(&self) -> RelativeHumidityInput
fn clone(&self) -> RelativeHumidityInput
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 RelativeHumidityInput
impl Debug for RelativeHumidityInput
Source§impl Default for RelativeHumidityInput
impl Default for RelativeHumidityInput
Source§impl PartialEq for RelativeHumidityInput
impl PartialEq for RelativeHumidityInput
impl StructuralPartialEq for RelativeHumidityInput
Auto Trait Implementations§
impl Freeze for RelativeHumidityInput
impl RefUnwindSafe for RelativeHumidityInput
impl Send for RelativeHumidityInput
impl Sync for RelativeHumidityInput
impl Unpin for RelativeHumidityInput
impl UnsafeUnpin for RelativeHumidityInput
impl UnwindSafe for RelativeHumidityInput
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