pub struct BomLine {Show 36 fields
pub part_type: String,
pub part_values: BTreeMap<String, Value>,
pub occurrence_values: Vec<Occurrence>,
pub owner_part: String,
pub owner_revision: String,
pub occurrence_ids: Vec<String>,
pub occurrence_attributes: BTreeMap<String, Value>,
pub level: usize,
pub position: String,
pub find_number: String,
pub reference: String,
pub notes: String,
pub part_id: String,
pub number: String,
pub name: String,
pub revision_id: String,
pub revision_label: String,
pub state: String,
pub floating: bool,
pub category_path: String,
pub attributes: Vec<String>,
pub quantity: f64,
pub unit: String,
pub total: f64,
pub assembly: bool,
pub mpn: String,
pub manufacturer: String,
pub supplier: String,
pub spn: String,
pub currency: String,
pub unit_price: Option<f64>,
pub extended: Option<f64>,
pub costed: bool,
pub warnings: Vec<String>,
pub flags: Vec<String>,
pub attachments: Vec<String>,
}Expand description
One line of a BOM. In the indented view it is one use at one place in the tree; in the flat view it is every occurrence of one part revision (and unit) added up.
Fields§
§part_type: String§part_values: BTreeMap<String, Value>§occurrence_values: Vec<Occurrence>§owner_part: String§owner_revision: String§occurrence_ids: Vec<String>§occurrence_attributes: BTreeMap<String, Value>§level: usizeDepth below the top: 1 for what the top uses directly. 0 in the flat view.
position: String1.2.3 — the line’s place in the tree. Empty in the flat view.
find_number: String§reference: String§notes: String§part_id: String§number: String§name: String§revision_id: String§revision_label: String§state: StringThe resolved revision’s state; empty when it no longer exists.
floating: boolThe use names no revision; this one is what it resolves to now.
category_path: String§attributes: Vec<String>The part’s catalog values as “Name: value unit”, schema order.
quantity: f64How many per ONE parent. In the flat view, the same as total.
unit: String§total: f64How many for ONE of the top part: the quantities along the path multiplied, and in the flat view summed over every path.
assembly: boolThis part revision uses something itself.
mpn: StringThe preferred manufacturer part number, else the first; empty with no sourcing.
manufacturer: String§supplier: StringThe offer priced here: the cheapest of the MPN’s offers at total.
spn: String§currency: String§unit_price: Option<f64>Each, at total — the price break total reaches, or the first break
when total is below it (the least a supplier sells).
extended: Option<f64>unit_price × total.
costed: boolCounted in the totals: a priced line with nothing beneath it. An assembly’s own price is shown but its children are what is bought.
warnings: Vec<String>§flags: Vec<String>One short word per warning, in the same order, for a chip in a table
row: unreleased, superseded, obsolete, no release, missing,
bake, cycle, too deep.
attachments: Vec<String>The files on the part and on the resolved revision, by name (part files first) — a drawing to hand the shop with the list.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BomLine
impl Freeze for BomLinewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
PhantomData<Occurrence>: Freeze,
PhantomData<String>: Freeze,
impl Move for BomLine
impl RefUnwindSafe for BomLine
impl Send for BomLine
impl Sync for BomLine
impl Unpin for BomLine
impl UnsafeUnpin for BomLinewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
PhantomData<Occurrence>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for BomLine
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
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,
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> ⓘ
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> ⓘ
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 moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self, then passes self.as_ref() into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self, then passes self.as_mut() into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self, then passes self.deref() into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B> of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B> of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R> view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R> view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap() only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow() only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut() only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref() only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut() only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref() only in debug builds, and is erased in release
builds.