#[non_exhaustive]pub struct Site {
pub id: String,
pub nmi: String,
pub channels: Vec<Channel>,
pub network: String,
pub status: SiteStatus,
pub active_from: Option<Date>,
pub closed_on: Option<Date>,
pub interval_length: u32,
}
Expand description
Site information
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: String
Unique Site Identifier
nmi: String
National Metering Identifier (NMI) for the site
channels: Vec<Channel>
List of channels that are readable from your meter
network: String
The name of the site’s network
status: SiteStatus
Site status
active_from: Option<Date>
Date the site became active. This date will be in the future for pending sites. It may also be undefined, though if it is, contact info@amber.com.au as there may be an issue with your address.
closed_on: Option<Date>
Date the site closed. Undefined if the site is pending or active.
interval_length: u32
Length of interval that you will be billed on. 5 or 30 minutes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Site
impl<'de> Deserialize<'de> for Site
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
impl StructuralPartialEq for Site
Auto Trait Implementations§
impl Freeze for Site
impl RefUnwindSafe for Site
impl Send for Site
impl Sync for Site
impl Unpin for Site
impl UnwindSafe for Site
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