pub struct WindSpeedAction<'a> { /* private fields */ }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
Implementations§
Source§impl WindSpeedAction<'_>
impl WindSpeedAction<'_>
pub fn date(self, date: Date) -> Self
pub fn pagination_token(self, pagination_token: impl Into<String>) -> Self
pub fn x_api_key(self, x_api_key: impl Into<String>) -> Self
pub fn request(self) -> Result<Request<Vec<u8>>, Error>
pub fn decode<B: AsRef<[u8]>>( response: ResponseParts<B>, ) -> Result<WindSpeedOperationResponse, Error>
Trait Implementations§
Source§impl Action for WindSpeedAction<'_>
impl Action for WindSpeedAction<'_>
Source§impl<'a> Clone for WindSpeedAction<'a>
impl<'a> Clone for WindSpeedAction<'a>
Source§fn clone(&self) -> WindSpeedAction<'a>
fn clone(&self) -> WindSpeedAction<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for WindSpeedAction<'a>
impl<'a> RefUnwindSafe for WindSpeedAction<'a>
impl<'a> Send for WindSpeedAction<'a>
impl<'a> Sync for WindSpeedAction<'a>
impl<'a> Unpin for WindSpeedAction<'a>
impl<'a> UnsafeUnpin for WindSpeedAction<'a>
impl<'a> UnwindSafe for WindSpeedAction<'a>
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