#[non_exhaustive]pub enum RenewableDescriptor {
Best,
Great,
Ok,
NotGreat,
Worst,
}
Expand description
Describes the state of renewables.
Gives you an indication of how green power is right now
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Best
Best renewable conditions - highest percentage of green energy
Great
Great renewable conditions - high percentage of green energy
Ok
Ok renewable conditions - moderate percentage of green energy
NotGreat
Not great renewable conditions - low percentage of green energy
Worst
Worst renewable conditions - lowest percentage of green energy
Trait Implementations§
Source§impl Clone for RenewableDescriptor
impl Clone for RenewableDescriptor
Source§fn clone(&self) -> RenewableDescriptor
fn clone(&self) -> RenewableDescriptor
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 RenewableDescriptor
impl Debug for RenewableDescriptor
Source§impl<'de> Deserialize<'de> for RenewableDescriptor
impl<'de> Deserialize<'de> for RenewableDescriptor
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
Source§impl Display for RenewableDescriptor
impl Display for RenewableDescriptor
Source§impl PartialEq for RenewableDescriptor
impl PartialEq for RenewableDescriptor
impl Eq for RenewableDescriptor
impl StructuralPartialEq for RenewableDescriptor
Auto Trait Implementations§
impl Freeze for RenewableDescriptor
impl RefUnwindSafe for RenewableDescriptor
impl Send for RenewableDescriptor
impl Sync for RenewableDescriptor
impl Unpin for RenewableDescriptor
impl UnwindSafe for RenewableDescriptor
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