pub struct TopView {
pub width: f64,
pub depth: f64,
pub x: Option<f64>,
pub z: Option<f64>,
pub image_format: ImageFormat,
pub image: String,
}Expand description
Top-view representation of a Product. Implemented by an image that is put into a rectangular region. The origin of the region is aligned with the origin of the Product but may be moved by an offset.
Fields§
§width: f64Width, in m, of the rectangular region.
depth: f64Depth, in m, of the rectangular region.
x: Option<f64>Optional X offset, in m, of the rectangular region.
z: Option<f64>Optional Z offset, in m, of the rectangular region.
image_format: ImageFormatThe mandatory format of the image.
image: StringThe manadatory image reference.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TopView
impl<'de> Deserialize<'de> for TopView
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>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for TopView
Auto Trait Implementations§
impl Freeze for TopView
impl RefUnwindSafe for TopView
impl Send for TopView
impl Sync for TopView
impl Unpin for TopView
impl UnwindSafe for TopView
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