#[non_exhaustive]pub enum SiteStatus {
Pending,
Active,
Closed,
}
Expand description
Site status.
Pending sites are still in the process of being transferred.
Note: Amber only includes sites that have correct address details. If you expect to see a site, but don’t, you may need to contact info@amber.com.au to check that the address is correct.
Active sites are ones that Amber actively supplies electricity to.
Closed sites are old sites that Amber no longer supplies.
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.
Pending
Site is still in the process of being transferred.
Note: Amber only includes sites that have correct address details. If you expect to see a site, but don’t, you may need to contact info@amber.com.au to check that the address is correct.
Active
Site is actively supplied with electricity by Amber
Closed
Old site that Amber no longer supplies
Trait Implementations§
Source§impl Clone for SiteStatus
impl Clone for SiteStatus
Source§fn clone(&self) -> SiteStatus
fn clone(&self) -> SiteStatus
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 SiteStatus
impl Debug for SiteStatus
Source§impl<'de> Deserialize<'de> for SiteStatus
impl<'de> Deserialize<'de> for SiteStatus
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 SiteStatus
impl Display for SiteStatus
Source§impl PartialEq for SiteStatus
impl PartialEq for SiteStatus
impl Eq for SiteStatus
impl StructuralPartialEq for SiteStatus
Auto Trait Implementations§
impl Freeze for SiteStatus
impl RefUnwindSafe for SiteStatus
impl Send for SiteStatus
impl Sync for SiteStatus
impl Unpin for SiteStatus
impl UnwindSafe for SiteStatus
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