pub struct Plan {Show 15 fields
pub filename: String,
pub target: Option<Uuid>,
pub root_label: String,
pub root_number: Option<String>,
pub root_name: String,
pub project_id: Uuid,
pub project_code: String,
pub items: Vec<PlannedItem>,
pub lines: Vec<PlannedLine>,
pub columns: Vec<Column>,
pub attribute_columns: Vec<AttributeColumn>,
pub unused_columns: Vec<String>,
pub warnings: Vec<String>,
pub new_items: usize,
pub existing_items: usize,
}Expand description
What an import would do.
Fields§
§filename: String§target: Option<Uuid>Existing revision the BOM is imported into.
root_label: StringASM-000001/A for a target, the name of a new assembly otherwise.
root_number: Option<String>Number of a new top-level assembly; None = generated.
root_name: String§project_id: Uuid§project_code: String§items: Vec<PlannedItem>§lines: Vec<PlannedLine>In file order (depth first), so it can be shown as an indented tree.
columns: Vec<Column>§attribute_columns: Vec<AttributeColumn>Columns read into custom attributes (header = key or label).
unused_columns: Vec<String>Columns that are not imported.
warnings: Vec<String>§new_items: usize§existing_items: usizeTrait Implementations§
Auto Trait Implementations§
impl Freeze for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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.