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 all() -> Vec<&'static Self>
pub fn all_for_country(country: Country) -> &'static [&'static Self]
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
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