pub struct DSTListRequest { /* private fields */ }
Expand description
Time API requests. DSTList API request.
Example:
use libtad_rs::{
ServiceClient,
service::time::DSTListRequest,
};
let client = ServiceClient::new("access_key".into(), "secret_key".into());
let request = DSTListRequest::new()
.set_year(2021)
.set_onlydst(true);
let response = client.get_daylight_savings_time(&request);
Implementations§
Source§impl DSTListRequest
impl DSTListRequest
Sourcepub fn set_country(self, country: impl Into<String>) -> Self
pub fn set_country(self, country: impl Into<String>) -> Self
Set country to query for.
Sourcepub fn set_listplaces(self, enable: bool) -> Self
pub fn set_listplaces(self, enable: bool) -> Self
Toggle whether to include individual places belonging to each country.
Sourcepub fn set_onlydst(self, enable: bool) -> Self
pub fn set_onlydst(self, enable: bool) -> Self
Toggle whether to only include places which observe DST.
Sourcepub fn set_timechanges(self, enable: bool) -> Self
pub fn set_timechanges(self, enable: bool) -> Self
Toggle whether to include time change information.
Sourcepub fn set_verbosetime(self, enable: bool) -> Self
pub fn set_verbosetime(self, enable: bool) -> Self
Toggle whether to include verbose time stamps.
Trait Implementations§
Source§impl Default for DSTListRequest
impl Default for DSTListRequest
Source§fn default() -> DSTListRequest
fn default() -> DSTListRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DSTListRequest
impl RefUnwindSafe for DSTListRequest
impl Send for DSTListRequest
impl Sync for DSTListRequest
impl Unpin for DSTListRequest
impl UnwindSafe for DSTListRequest
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