pub struct WindDirectionAction<'a> { /* private fields */ }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
°
Implementations§
Source§impl WindDirectionAction<'_>
impl WindDirectionAction<'_>
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<WindDirectionOperationResponse, Error>
Trait Implementations§
Source§impl Action for WindDirectionAction<'_>
impl Action for WindDirectionAction<'_>
Source§impl<'a> Clone for WindDirectionAction<'a>
impl<'a> Clone for WindDirectionAction<'a>
Source§fn clone(&self) -> WindDirectionAction<'a>
fn clone(&self) -> WindDirectionAction<'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 WindDirectionAction<'a>
impl<'a> RefUnwindSafe for WindDirectionAction<'a>
impl<'a> Send for WindDirectionAction<'a>
impl<'a> Sync for WindDirectionAction<'a>
impl<'a> Unpin for WindDirectionAction<'a>
impl<'a> UnsafeUnpin for WindDirectionAction<'a>
impl<'a> UnwindSafe for WindDirectionAction<'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