pub struct PrototypeDevice {
pub type: Type,
pub size: Option<Box<Size>>,
pub preset_identifier: Option<String>,
pub rotation: Rotation,
}
Expand description
PrototypeDevice : The device used to view a prototype.
Fields§
§type: Type
§size: Option<Box<Size>>
§preset_identifier: Option<String>
§rotation: Rotation
Implementations§
Source§impl PrototypeDevice
impl PrototypeDevice
Sourcepub fn new(type: Type, rotation: Rotation) -> PrototypeDevice
pub fn new(type: Type, rotation: Rotation) -> PrototypeDevice
The device used to view a prototype.
Trait Implementations§
Source§impl Clone for PrototypeDevice
impl Clone for PrototypeDevice
Source§fn clone(&self) -> PrototypeDevice
fn clone(&self) -> PrototypeDevice
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrototypeDevice
impl Debug for PrototypeDevice
Source§impl Default for PrototypeDevice
impl Default for PrototypeDevice
Source§fn default() -> PrototypeDevice
fn default() -> PrototypeDevice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PrototypeDevice
impl<'de> Deserialize<'de> for PrototypeDevice
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
Source§impl PartialEq for PrototypeDevice
impl PartialEq for PrototypeDevice
Source§impl Serialize for PrototypeDevice
impl Serialize for PrototypeDevice
impl StructuralPartialEq for PrototypeDevice
Auto Trait Implementations§
impl Freeze for PrototypeDevice
impl RefUnwindSafe for PrototypeDevice
impl Send for PrototypeDevice
impl Sync for PrototypeDevice
impl Unpin for PrototypeDevice
impl UnwindSafe for PrototypeDevice
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