pub struct GridOperator { /* private fields */ }Implementations§
Source§impl GridOperator
impl GridOperator
pub const fn name(&self) -> &str
pub const fn vat_number(&self) -> &str
pub const fn country(&self) -> Country
pub const fn links(&self) -> &Links
pub fn active_price_lists(&self) -> Vec<&'static PriceList>
pub fn active_price_list( &self, variant: Option<&str>, ) -> Option<&'static PriceList>
pub fn price_lists(&self) -> &'static [PriceList]
pub const fn currency(&self) -> Currency
pub fn get(country: Country, name: &str) -> Option<&'static Self>
pub fn get_by_vat_id(vat_id: &str) -> Option<&'static Self>
pub fn all() -> Vec<&'static Self>
pub fn all_for_country(country: Country) -> &'static [&'static Self]
pub const fn builder() -> GridOperatorBuilder
pub fn simplified( &self, fuse_size: u16, yearly_consumption: u32, language: Language, ) -> GridOperatorSimplified
Trait Implementations§
Source§impl Clone for GridOperator
impl Clone for GridOperator
Source§fn clone(&self) -> GridOperator
fn clone(&self) -> GridOperator
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 GridOperator
impl Debug for GridOperator
Source§impl<'de> Deserialize<'de> for &'static GridOperator
impl<'de> Deserialize<'de> for &'static GridOperator
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 FromStr for &'static GridOperator
impl FromStr for &'static GridOperator
Source§impl Hash for GridOperator
impl Hash for GridOperator
Source§impl Ord for GridOperator
impl Ord for GridOperator
Source§impl PartialEq for GridOperator
impl PartialEq for GridOperator
Source§impl PartialOrd for GridOperator
impl PartialOrd for GridOperator
Source§impl Serialize for GridOperator
impl Serialize for GridOperator
impl Eq for GridOperator
Auto Trait Implementations§
impl Freeze for GridOperator
impl RefUnwindSafe for GridOperator
impl Send for GridOperator
impl Sync for GridOperator
impl Unpin for GridOperator
impl UnwindSafe for GridOperator
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.