pub enum WindDirectionOperationResponse {
Ok(WindDirectionResponse),
BadRequest(InvalidParamsError),
NotFound(DataNotFoundError),
Status429(RateLimitError),
UnexpectedStatus(StatusCode, Vec<u8>),
}Expand description
https://api-open.data.gov.sg/v2/real-time/api/wind-direction
-
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(WindDirectionResponse)
Wind Direction 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 WindDirectionOperationResponse
impl Clone for WindDirectionOperationResponse
Source§fn clone(&self) -> WindDirectionOperationResponse
fn clone(&self) -> WindDirectionOperationResponse
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 WindDirectionOperationResponse
impl PartialEq for WindDirectionOperationResponse
Source§fn eq(&self, other: &WindDirectionOperationResponse) -> bool
fn eq(&self, other: &WindDirectionOperationResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WindDirectionOperationResponse
Auto Trait Implementations§
impl Freeze for WindDirectionOperationResponse
impl RefUnwindSafe for WindDirectionOperationResponse
impl Send for WindDirectionOperationResponse
impl Sync for WindDirectionOperationResponse
impl Unpin for WindDirectionOperationResponse
impl UnsafeUnpin for WindDirectionOperationResponse
impl UnwindSafe for WindDirectionOperationResponse
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