pub struct BomLine {Show 17 fields
pub id: Uuid,
pub parent_revision_id: Uuid,
pub child_item_id: Uuid,
pub child_number: String,
pub child_type: String,
pub child_unit: String,
pub find_number: i32,
pub quantity: f64,
pub notes: String,
pub child_latest_revision_id: Uuid,
pub child_latest_code: String,
pub child_latest_state: String,
pub child_name: String,
pub released_child_revision_id: Option<Uuid>,
pub released_child_code: Option<String>,
pub child_project_id: Option<Uuid>,
pub restricted: bool,
}Expand description
A stored single-level BOM line with information about the child item.
Fields§
§id: Uuid§parent_revision_id: Uuid§child_item_id: Uuid§child_number: String§child_type: String§child_unit: String§find_number: i32§quantity: f64§notes: String§child_latest_revision_id: UuidLatest revision of the child item (for display).
child_latest_code: String§child_latest_state: String§child_name: String§released_child_revision_id: Option<Uuid>Child revision the line resolved to when the parent was released.
released_child_code: Option<String>§child_project_id: Option<Uuid>Project group of the child (for the read check; never sent).
restricted: boolPlaceholder for a child the reader may not see: find number and quantity stay; the child’s identity and the notes (they describe the hidden child, possibly written by a member) are removed.
Implementations§
Trait Implementations§
Source§impl From<&BomLine> for LineValues
impl From<&BomLine> for LineValues
Source§impl<'a, R: Row> FromRow<'a, R> for BomLinewhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
f64: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for BomLinewhere
&'a str: ColumnIndex<R>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
String: Decode<'a, R::Database> + Type<R::Database>,
i32: Decode<'a, R::Database> + Type<R::Database>,
f64: Decode<'a, R::Database> + Type<R::Database>,
Option<Uuid>: Decode<'a, R::Database> + Type<R::Database>,
Option<String>: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for BomLine
impl RefUnwindSafe for BomLine
impl Send for BomLine
impl Sync for BomLine
impl Unpin for BomLine
impl UnsafeUnpin for BomLine
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
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.