pub enum RelativeHumidityOperationResponse {
Ok(RelativeHumidityResponse),
BadRequest(InvalidParamsError),
NotFound(DataNotFoundError),
Status429(RateLimitError),
UnexpectedStatus(StatusCode, Vec<u8>),
}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
%
Variants§
Ok(RelativeHumidityResponse)
Relative Humidity Information
BadRequest(InvalidParamsError)
Invalid request (bad date format or pagination token)
NotFound(DataNotFoundError)
Weather data not found
Status429(RateLimitError)
Rate limit exceeded (429). Wait and retry, or use an x-api-key.
UnexpectedStatus(StatusCode, Vec<u8>)
Trait Implementations§
Source§impl Clone for RelativeHumidityOperationResponse
impl Clone for RelativeHumidityOperationResponse
Source§fn clone(&self) -> RelativeHumidityOperationResponse
fn clone(&self) -> RelativeHumidityOperationResponse
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 PartialEq for RelativeHumidityOperationResponse
impl PartialEq for RelativeHumidityOperationResponse
Source§fn eq(&self, other: &RelativeHumidityOperationResponse) -> bool
fn eq(&self, other: &RelativeHumidityOperationResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RelativeHumidityOperationResponse
Auto Trait Implementations§
impl Freeze for RelativeHumidityOperationResponse
impl RefUnwindSafe for RelativeHumidityOperationResponse
impl Send for RelativeHumidityOperationResponse
impl Sync for RelativeHumidityOperationResponse
impl Unpin for RelativeHumidityOperationResponse
impl UnsafeUnpin for RelativeHumidityOperationResponse
impl UnwindSafe for RelativeHumidityOperationResponse
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