Struct openconfiguration::TopView
source · 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: f64
Width, in m, of the rectangular region.
depth: f64
Depth, 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: ImageFormat
The mandatory format of the image.
image: String
The manadatory image reference.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for TopView
impl<'de> Deserialize<'de> for TopView
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
impl StructuralPartialEq for TopView
Auto Trait Implementations
impl RefUnwindSafe for TopView
impl Send for TopView
impl Sync for TopView
impl Unpin for TopView
impl UnwindSafe for TopView
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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