Struct amber_client::rest_client::RenewablesData
source · pub struct RenewablesData {
pub price_type: String,
pub duration: u8,
pub date: Timestamp,
pub start_time: Timestamp,
pub end_time: Timestamp,
pub renewables: f32,
pub descriptor: String,
}Expand description
Struct type that matches the resulting data from the Amber “/renewables” REST endpoint.
Fields§
§price_type: String§duration: u8§date: Timestamp§start_time: Timestamp§end_time: Timestamp§renewables: f32§descriptor: StringTrait Implementations§
source§impl Clone for RenewablesData
impl Clone for RenewablesData
source§fn clone(&self) -> RenewablesData
fn clone(&self) -> RenewablesData
Returns a copy 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 RenewablesData
impl Debug for RenewablesData
source§impl<'de> Deserialize<'de> for RenewablesData
impl<'de> Deserialize<'de> for RenewablesData
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for RenewablesData
impl Send for RenewablesData
impl Sync for RenewablesData
impl Unpin for RenewablesData
impl UnwindSafe for RenewablesData
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