Struct openconfiguration::Product
source · [−]pub struct Product {
pub kind: Option<ProductKind>,
pub state: Option<ProductState>,
pub transform: Option<Transform>,
pub material_categories: Option<HashMap<String, String>>,
pub categories: Option<Vec<String>>,
pub structure: Option<Vec<Component>>,
pub top_view: Option<TopView>,
pub preview: Option<Preview>,
pub points: Option<Vec<AttachPoint>>,
pub commercial: Option<Commercial>,
pub status: Status,
pub master_data: Option<MasterData>,
}Expand description
An initial or incremental product representation.
Fields
kind: Option<ProductKind>state: Option<ProductState>Optional state information for a product. Even if the state object exists, not all attributes may be set. The state information always entirely updates an existing state information.
transform: Option<Transform>Optional world transform of the product representation. If the transform is not null, it entirely replaces the existing transform.
material_categories: Option<HashMap<String, String>>The mandatory attribute maps material categories to materials. Both, material categories and materials should be compatible with a three-level technical namespace. Implicit material categories consist of prefix ‘@’ and a material, and should be included too, even if this is kind of redundant.
IGXC Compatibility: In IGXC this attribute was named Categories.
categories: Option<Vec<String>>Product categories for the client-side implementation of planning behavior. If Categories is not null, it entirely replaces the existing categories.
IGXC Compatibility: In IGXC, categories were considered from the structure’s root entry. Now they can be updated, even if the structure does not change.
structure: Option<Vec<Component>>The tree structure that describes the product in 3D. If the structure is not null, it entirely replaces the existing structure.
top_view: Option<TopView>An optional product representation from top-view perspective. Version: OC 1.2
preview: Option<Preview>An optional product preview image. Version: OC 1.2
points: Option<Vec<AttachPoint>>Attachment points for the client-side creation of neighbor and parent-child relationships. If Points is not null, it entirely replaces the existing points.
IGXC Compatibility: In IGXC, points were considered from the structure’s root entry. Now they can be updated, even if the structure does not change.
commercial: Option<Commercial>Commercial data related to this product
status: StatusContains product related status information.
master_data: Option<MasterData>Master data related to this product Version: OC 1.3
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Product
impl<'de> Deserialize<'de> for Product
sourcefn 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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Product
impl Send for Product
impl Sync for Product
impl Unpin for Product
impl UnwindSafe for Product
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more