pub struct GetInsolationParams {
pub date: Option<Date>,
pub timezone: Option<String>,
pub location: Option<(f32, f32)>,
pub system_id: Option<u32>,
}Expand description
Parameters for the get_insolation endpoint.
Fields§
§date: Option<Date>Date to retrieve insolation data for.
If not set, today’s date will be used.
timezone: Option<String>Timezone to use for insolation calculation.
If not set, the system’s timezone will be used. If the system doesn’t have a timezone, UTC will be used as a fallback.
location: Option<(f32, f32)>Latitude and longitude to use for insolation calculation.
If not set, the system’s latitude and longitude will be used. If the system doesn’t have location information, the system’s postcode’s latitude and longitude will be used.
system_id: Option<u32>System to retrieve insolation data for.
If unset, the Client’s authenticated system is used.
Trait Implementations§
Source§impl Clone for GetInsolationParams
impl Clone for GetInsolationParams
Source§fn clone(&self) -> GetInsolationParams
fn clone(&self) -> GetInsolationParams
Returns a duplicate of the value. Read more
1.0.0 · 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 GetInsolationParams
impl Debug for GetInsolationParams
Source§impl Default for GetInsolationParams
impl Default for GetInsolationParams
Source§fn default() -> GetInsolationParams
fn default() -> GetInsolationParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetInsolationParams
impl RefUnwindSafe for GetInsolationParams
impl Send for GetInsolationParams
impl Sync for GetInsolationParams
impl Unpin for GetInsolationParams
impl UnwindSafe for GetInsolationParams
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