pub struct UtilityCompany {
pub utility_id: Uuid,
pub name: String,
pub utility_type: UtilityType,
pub country: String,
pub typical_bill_range: (Decimal, Decimal),
}Expand description
A utility company counterparty.
Fields§
§utility_id: UuidUnique utility identifier
name: StringUtility name
utility_type: UtilityTypeUtility type
country: StringCountry (ISO 3166-1 alpha-2)
typical_bill_range: (Decimal, Decimal)Typical bill range
Implementations§
Trait Implementations§
Source§impl Clone for UtilityCompany
impl Clone for UtilityCompany
Source§fn clone(&self) -> UtilityCompany
fn clone(&self) -> UtilityCompany
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 UtilityCompany
impl Debug for UtilityCompany
Source§impl<'de> Deserialize<'de> for UtilityCompany
impl<'de> Deserialize<'de> for UtilityCompany
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 UtilityCompany
impl RefUnwindSafe for UtilityCompany
impl Send for UtilityCompany
impl Sync for UtilityCompany
impl Unpin for UtilityCompany
impl UnwindSafe for UtilityCompany
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