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: Status

Contains product related status information.

master_data: Option<MasterData>

Master data related to this product Version: OC 1.3

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.