pub struct AddNetBatchStatusParams {
pub date: Date,
pub time: Time,
pub power_exported: u32,
pub power_imported: u32,
/* private fields */
}Expand description
Parameters for the add_batch_status_net endpoint.
Fields§
§date: DateThe date for this status.
time: TimeThe time for this status.
Times will be rounded to the nearest configured status interval.
power_exported: u32Power exported in watts.
power_imported: u32Power imported in watts.
Implementations§
Source§impl AddNetBatchStatusParams
impl AddNetBatchStatusParams
Sourcepub const fn new(
date: Date,
time: Time,
power_exported: u32,
power_imported: u32,
) -> Self
pub const fn new( date: Date, time: Time, power_exported: u32, power_imported: u32, ) -> Self
Creates a new AddNetBatchStatusParams with the provided fields.
Trait Implementations§
Source§impl Clone for AddNetBatchStatusParams
impl Clone for AddNetBatchStatusParams
Source§fn clone(&self) -> AddNetBatchStatusParams
fn clone(&self) -> AddNetBatchStatusParams
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 AddNetBatchStatusParams
impl Debug for AddNetBatchStatusParams
Auto Trait Implementations§
impl Freeze for AddNetBatchStatusParams
impl RefUnwindSafe for AddNetBatchStatusParams
impl Send for AddNetBatchStatusParams
impl Sync for AddNetBatchStatusParams
impl Unpin for AddNetBatchStatusParams
impl UnwindSafe for AddNetBatchStatusParams
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