pub struct Site {Show 14 fields
pub id: u32,
pub name: String,
pub account_id: u32,
pub status: String,
pub peak_power: Power,
pub last_update_time: NaiveDate,
pub installation_date: NaiveDate,
pub pto_date: Option<String>,
pub notes: String,
pub site_type: String,
pub location: Location,
pub primary_module: PrimaryModule,
pub uris: HashMap<String, String>,
pub public_settings: PublicSettings,
}
Fields§
§id: u32
the site id
name: String
the site name
account_id: u32
the account this site belongs to
status: String
the site status
peak_power: Power
site peak power
last_update_time: NaiveDate
§installation_date: NaiveDate
site installation date
pto_date: Option<String>
permission to operate date
notes: String
§site_type: String
site type
location: Location
includes country, state, city, address, secondary address, time zone and zip
primary_module: PrimaryModule
§uris: HashMap<String, String>
§public_settings: PublicSettings
includes if this site is public and its public name
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
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