pub struct Municipality {
pub code: u16,
pub name: &'static str,
pub county: County,
pub taxes: Taxes,
pub tax_reductions: TaxReductions,
}Fields§
§code: u16§name: &'static str§county: County§taxes: Taxes§tax_reductions: TaxReductionsImplementations§
Source§impl Municipality
impl Municipality
Sourcepub const fn get_by_code(code: u16) -> Option<&'static Municipality>
pub const fn get_by_code(code: u16) -> Option<&'static Municipality>
Find a municipality by its code
Sourcepub const fn get_by_name(name: &str) -> Option<&'static Municipality>
pub const fn get_by_name(name: &str) -> Option<&'static Municipality>
Find a municipality by its name
pub const fn taxes(&self) -> Taxes
pub const fn tax_reductions(&self) -> TaxReductions
pub fn with_current_taxes(self) -> Self
pub fn with_current_tax_reductions(self) -> Self
Trait Implementations§
Source§impl Clone for Municipality
impl Clone for Municipality
Source§fn clone(&self) -> Municipality
fn clone(&self) -> Municipality
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 Municipality
impl Debug for Municipality
Auto Trait Implementations§
impl Freeze for Municipality
impl RefUnwindSafe for Municipality
impl Send for Municipality
impl Sync for Municipality
impl Unpin for Municipality
impl UnwindSafe for Municipality
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