pub struct LineItem {
pub number: Option<String>,
pub item_type: Option<String>,
pub descriptions: Vec<ItemDescription>,
pub locations: Vec<LocationGroup>,
pub parties: Vec<Party>,
}Expand description
One LIN loop — a position of the message.
Fields§
§number: Option<String>DE 1082 Positionsnummer.
item_type: Option<String>C212 DE 7143 item type — the Zeitreihentyp in ALOCAT (LIN+1++:Z01::332).
descriptions: Vec<ItemDescription>IMD descriptions (NOMRES).
locations: Vec<LocationGroup>The LOC groups of this position, in wire order.
parties: Vec<Party>Position-level parties — Bilanzkreis, Netzkonto, VHP, Netzbetreiber.
Implementations§
Source§impl LineItem
impl LineItem
Sourcepub fn party(&self, role: &str) -> Option<&Party>
pub fn party(&self, role: &str) -> Option<&Party>
The first position-level party with the given NAD role.
Sourcepub fn quantities(&self) -> impl Iterator<Item = &Quantity>
pub fn quantities(&self) -> impl Iterator<Item = &Quantity>
Every quantity of this position, flattened across its LOC groups.
Sourcepub fn description_code(&self) -> Option<&str>
pub fn description_code(&self) -> Option<&str>
The IMD DE 7009 code of this position, when it carries one.
Sourcepub fn status_code(&self) -> Option<&str>
pub fn status_code(&self) -> Option<&str>
The STS DE 9015 code of this position’s first quantity — the
Zeitreihentyp of an ALOCAT position, the Verfahren of a SSQNOT one.
Trait Implementations§
impl StructuralPartialEq for LineItem
Auto Trait Implementations§
impl Freeze for LineItem
impl RefUnwindSafe for LineItem
impl Send for LineItem
impl Sync for LineItem
impl Unpin for LineItem
impl UnsafeUnpin for LineItem
impl UnwindSafe for LineItem
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