pub struct DrawingOptions {
pub step: Option<String>,
pub views: Vec<String>,
pub first_angle: bool,
pub scale: Option<String>,
pub sheet: Option<String>,
pub name: Option<String>,
pub material: Option<String>,
pub bom: bool,
}Expand description
Which drawing is written, and what of it is changed from what its step describes — as the command line asks.
Fields§
§step: Option<String>The drawing step to write, by id. Else the step being edited, if it is a drawing; else the program’s last drawing; else a drawing of the whole part, as a new step describes it.
views: Vec<String>The views, by name: front, top, right, iso, left,
bottom, back.
first_angle: boolFirst-angle projection (ISO) rather than third angle (ASME).
scale: Option<String>The scale as written, 1:2 or 5:1.
sheet: Option<String>The paper: a4 to a0.
name: Option<String>The part’s name for the title block.
material: Option<String>What it is made of, for the title block.
bom: boolList the parts placed above the title block.
Trait Implementations§
Source§impl Clone for DrawingOptions
impl Clone for DrawingOptions
Source§fn clone(&self) -> DrawingOptions
fn clone(&self) -> DrawingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DrawingOptions
impl Debug for DrawingOptions
Source§impl Default for DrawingOptions
impl Default for DrawingOptions
Source§fn default() -> DrawingOptions
fn default() -> DrawingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DrawingOptionswhere
DrawingOptions: Default,
impl<'de> Deserialize<'de> for DrawingOptionswhere
DrawingOptions: Default,
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 DrawingOptions
impl PartialEq for DrawingOptions
impl StructuralPartialEq for DrawingOptions
Auto Trait Implementations§
impl Freeze for DrawingOptions
impl RefUnwindSafe for DrawingOptions
impl Send for DrawingOptions
impl Sync for DrawingOptions
impl Unpin for DrawingOptions
impl UnsafeUnpin for DrawingOptions
impl UnwindSafe for DrawingOptions
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