pub struct GetStatisticsParams {
pub date_from: Option<Date>,
pub date_to: Option<Date>,
pub consumption: bool,
pub credit_and_debit: bool,
pub system_id: Option<u32>,
}Expand description
Parameters for the get_statistics endpoint.
Fields§
§date_from: Option<Date>Date to measure statistics from.
date_to: Option<Date>Date to measure statistics to.
consumption: boolReturn consumption data.
This information is only available to the system owner.
Requesting data for another system via the system_id parameter will not work.
credit_and_debit: boolReturn credit and debit data.
This information is only available to the system owner.
Requesting data for another system via the system_id parameter will not work.
system_id: Option<u32>System ID to retrieve statistics for.
If unset, the Client’s authenticated system is used.
Requires donation status.
Trait Implementations§
Source§impl Clone for GetStatisticsParams
impl Clone for GetStatisticsParams
Source§fn clone(&self) -> GetStatisticsParams
fn clone(&self) -> GetStatisticsParams
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 GetStatisticsParams
impl Debug for GetStatisticsParams
Source§impl Default for GetStatisticsParams
impl Default for GetStatisticsParams
Source§fn default() -> GetStatisticsParams
fn default() -> GetStatisticsParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GetStatisticsParams
impl RefUnwindSafe for GetStatisticsParams
impl Send for GetStatisticsParams
impl Sync for GetStatisticsParams
impl Unpin for GetStatisticsParams
impl UnwindSafe for GetStatisticsParams
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