pub struct SurchargePerLocation {
pub meta: Bo4eMeta,
pub postal_code: Option<String>,
pub municipality: Option<String>,
pub network_area_code: Option<String>,
pub surcharges: Vec<Surcharge>,
}Expand description
A surcharge or discount that applies to a specific location.
German: AufAbschlagProOrt
§Example
use bo4e_core::com::SurchargePerLocation;
let surcharge = SurchargePerLocation {
postal_code: Some("50667".to_string()),
municipality: Some("Köln".to_string()),
..Default::default()
};Fields§
§meta: Bo4eMetaBO4E metadata
postal_code: Option<String>Postal code (Postleitzahl)
municipality: Option<String>Municipality/city (Ort)
network_area_code: Option<String>Network area code (Netznummer)
surcharges: Vec<Surcharge>Surcharges applicable to this location (AufAbschläge)
Trait Implementations§
Source§impl Bo4eObject for SurchargePerLocation
impl Bo4eObject for SurchargePerLocation
Source§fn type_name_german() -> &'static str
fn type_name_german() -> &'static str
Returns the German type name as used in the
_typ field. Read moreSource§fn type_name_english() -> &'static str
fn type_name_english() -> &'static str
Returns the English type name. Read more
Source§impl Clone for SurchargePerLocation
impl Clone for SurchargePerLocation
Source§fn clone(&self) -> SurchargePerLocation
fn clone(&self) -> SurchargePerLocation
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 SurchargePerLocation
impl Debug for SurchargePerLocation
Source§impl Default for SurchargePerLocation
impl Default for SurchargePerLocation
Source§fn default() -> SurchargePerLocation
fn default() -> SurchargePerLocation
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SurchargePerLocation
impl<'de> Deserialize<'de> for SurchargePerLocation
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 PartialEq for SurchargePerLocation
impl PartialEq for SurchargePerLocation
Source§impl Serialize for SurchargePerLocation
impl Serialize for SurchargePerLocation
impl StructuralPartialEq for SurchargePerLocation
Auto Trait Implementations§
impl Freeze for SurchargePerLocation
impl RefUnwindSafe for SurchargePerLocation
impl Send for SurchargePerLocation
impl Sync for SurchargePerLocation
impl Unpin for SurchargePerLocation
impl UnwindSafe for SurchargePerLocation
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