pub struct BomNode {Show 20 fields
pub line_id: Uuid,
pub level: usize,
pub find_number: i32,
pub quantity: f64,
pub notes: String,
pub item_id: Uuid,
pub item_number: String,
pub item_type: String,
pub unit: String,
pub revision: Option<ResolvedRevision>,
pub unit_mass_kg: f64,
pub total_mass_kg: f64,
pub unit_cost_total: f64,
pub total_cost: f64,
pub mass_complete: bool,
pub cost_complete: bool,
pub cycle: bool,
pub restricted: bool,
pub project_id: Option<Uuid>,
pub children: Vec<BomNode>,
}Fields§
§line_id: Uuid§level: usize§find_number: i32§quantity: f64§notes: String§item_id: Uuid§item_number: String§item_type: String§unit: String§revision: Option<ResolvedRevision>None if the revision rule found no matching revision.
unit_mass_kg: f64Mass of one unit including its children.
total_mass_kg: f64unit_mass_kg × quantity.
unit_cost_total: f64§total_cost: f64§mass_complete: boolFalse if a mass is missing somewhere in this sub-tree.
cost_complete: bool§cycle: boolSet when the structure loops back to an ancestor (should never happen).
restricted: boolPlaceholder for a child the reader may not see (no identity, not expanded, left out of the roll-ups).
project_id: Option<Uuid>Project group of the item; None for a restricted placeholder (the
group of a hidden item is never revealed) and for ungrouped items.
children: Vec<BomNode>Trait Implementations§
Auto Trait Implementations§
impl Freeze for BomNode
impl RefUnwindSafe for BomNode
impl Send for BomNode
impl Sync for BomNode
impl Unpin for BomNode
impl UnsafeUnpin for BomNode
impl UnwindSafe for BomNode
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.