pub enum WindSpeedOperationResponse {
Ok(WindSpeedResponse),
BadRequest(InvalidParamsError),
NotFound(DataNotFoundError),
Status429(RateLimitError),
UnexpectedStatus(StatusCode, Vec<u8>),
}Expand description
https://api-open.data.gov.sg/v2/real-time/api/wind-speed
-
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
Knots
Variants§
Ok(WindSpeedResponse)
Wind Speed 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 WindSpeedOperationResponse
impl Clone for WindSpeedOperationResponse
Source§fn clone(&self) -> WindSpeedOperationResponse
fn clone(&self) -> WindSpeedOperationResponse
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 WindSpeedOperationResponse
impl Debug for WindSpeedOperationResponse
impl StructuralPartialEq for WindSpeedOperationResponse
Auto Trait Implementations§
impl Freeze for WindSpeedOperationResponse
impl RefUnwindSafe for WindSpeedOperationResponse
impl Send for WindSpeedOperationResponse
impl Sync for WindSpeedOperationResponse
impl Unpin for WindSpeedOperationResponse
impl UnsafeUnpin for WindSpeedOperationResponse
impl UnwindSafe for WindSpeedOperationResponse
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