pub struct BuildItem {
pub object_id: ResourceId,
pub uuid: Option<Uuid>,
pub path: Option<String>,
pub part_number: Option<String>,
pub transform: Mat4,
}Expand description
A reference to an object that should be manufactured.
Build items specify which objects from the resource collection should be printed and where they should be positioned on the build platform. Each item can apply a transformation to position/rotate the object.
Only objects with types that can appear in the build (not ObjectType::Other)
are valid build item references.
Fields§
§object_id: ResourceIdThe ID of the object to manufacture.
uuid: Option<Uuid>Production Extension UUID for tracking this build item instance (optional).
path: Option<String>External reference path for production tracking (optional).
part_number: Option<String>Part number for this build item instance (optional).
transform: Mat4Transformation matrix positioning the object on the build platform. Defaults to identity (origin position, no rotation). The transformation is applied using the glam Mat4 type.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BuildItem
impl<'de> Deserialize<'de> for BuildItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for BuildItem
impl RefUnwindSafe for BuildItem
impl Send for BuildItem
impl Sync for BuildItem
impl Unpin for BuildItem
impl UnwindSafe for BuildItem
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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 more