pub struct BomRow {
pub line: usize,
pub level: usize,
pub find_number: Option<i32>,
pub number: String,
pub name: String,
pub description: String,
pub quantity: f64,
pub unit: String,
pub material: String,
pub mass_kg: Option<f64>,
pub structure: String,
pub extra: Vec<String>,
}Expand description
One component row of the table.
Fields§
§line: usizeRow in the file (1-based, for messages).
level: usize1 = direct child of the imported assembly.
find_number: Option<i32>§number: StringPart number as written in the file (may be empty).
name: String§description: String§quantity: f64§unit: StringNormalised unit (each, set, m, …), empty if not given.
material: String§mass_kg: Option<f64>§structure: StringBOM structure / procurement as written (Purchased, Normal, Kaufteil …),
see domain::Classification::from_bom_structure.
extra: Vec<String>Values of the columns no field is read from, in the order of
BomTable::extra_columns – custom attributes can be taken from them.
Trait Implementations§
impl StructuralPartialEq for BomRow
Auto Trait Implementations§
impl Freeze for BomRow
impl RefUnwindSafe for BomRow
impl Send for BomRow
impl Sync for BomRow
impl Unpin for BomRow
impl UnsafeUnpin for BomRow
impl UnwindSafe for BomRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreimpl<T> Parallelizable for T
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
impl<U, T> ToOwnedObj<U> for Twhere
U: FromObjRef<T>,
§fn to_owned_obj(&self, data: FontData<'_>) -> U
fn to_owned_obj(&self, data: FontData<'_>) -> U
Convert this type into
T, using the provided data to resolve any offsets.