pub struct SheetSpec {Show 25 fields
pub paper: Option<Paper>,
pub balloons: Mode,
pub keep_layout: Option<bool>,
pub uncited_datums: Option<bool>,
pub zones: Option<bool>,
pub table_columns: BTreeMap<String, u32>,
pub references: Option<bool>,
pub callouts: Option<Settings>,
pub hidden: Option<bool>,
pub centre_marks: Option<bool>,
pub centre_lines: Option<bool>,
pub thread_depiction: Option<bool>,
pub knurl_depiction: Option<bool>,
pub view_gutter: Option<f64>,
pub size: Option<String>,
pub preferred_max_size: Option<String>,
pub preferred_max_sheets: Option<u32>,
pub scale: Option<String>,
pub dimension_spacing: Option<DimensionSpacing>,
pub frame_gutter: Option<f64>,
pub title: BTreeMap<String, String>,
pub fit_limits: Option<bool>,
pub fit_deviations: Option<bool>,
pub projection: Option<String>,
pub default_finish: Option<FinishSpec>,
}Fields§
§paper: Option<Paper>Automatic paper family; defaults to ISO for mm and ANSI for inches.
balloons: ModeInspection characteristic rings; off unless explicitly set to all.
keep_layout: Option<bool>Keep explicit paper, scale and count without automatic selection or refitting.
uncited_datums: Option<bool>Declared datums no tolerance frame cites. Unset (the default), those no dimension measures
from either are not drawn, each reported as datum_not_drawn (info); true draws every
declared datum; false hides every uncited one as the user’s omission.
zones: Option<bool>ISO 5457 grid zones and centring marks on every sheet (default true). False omits
both, unless a section cross-reference cites a zone ([crate::sheets::furnish]).
table_columns: BTreeMap<String, u32>Side-by-side blocks for a table, by its ID (including declared, radius and hole tables),
from 1 to 4: 1 never splits it; unset splits a table taller than the drawable height
into the fewest blocks that fit it (crate::hole_table::split).
references: Option<bool>Draw automatically determined dimensions in parentheses; omitted by default.
callouts: Option<Settings>Shared thread and knurl callout presentation.
Line-work intent; absent keeps the view’s automatic convention.
centre_marks: Option<bool>§centre_lines: Option<bool>§thread_depiction: Option<bool>§knurl_depiction: Option<bool>§view_gutter: Option<f64>Preferred maximum blank paper between view annotation bands, mm (default 25). Spent only after sheet and scale selection; zero disables automatic gutters.
size: Option<String>A4 … A0.
preferred_max_size: Option<String>Preferred automatic paper, A4 … A0; defaults to A3.
preferred_max_sheets: Option<u32>Preferred sheet count, at least 1; defaults to 2. sheets.max stays hard.
scale: Option<String>n:m, from ISO 5455’s series.
dimension_spacing: Option<DimensionSpacing>Dimension-line spacing: unset uses normal 10/7 mm lanes and falls back to compact
7/5.5 mm on the same sheet before a smaller scale or larger paper; normal forbids
that fallback and compact uses compact lanes directly.
frame_gutter: Option<f64>Clear space every view and annotation keeps inside the frame, mm, from 0 to 20: unset is 3; spare paper widens it further. 0 lets the drawing run to the frame. The title block, zones, centring marks and frame-corner tables stay on the frame.
title: BTreeMap<String, String>§fit_limits: Option<bool>Legacy spelling of fit_deviations; explicit values remain supported.
fit_deviations: Option<bool>Show stacked ISO 286 deviations after the class; off by default.
Takes precedence over the legacy fit_limits setting.
projection: Option<String>ISO 5456-2’s projection method, first or third (angle): where the plan and side sit
about the front, and the symbol beside the title block. Third angle unless set. Any
other value is refused when the spec is read, before the part is (ISSUE-1514-a).
default_finish: Option<FinishSpec>The part’s default surface texture (draftwright’s default_surface_finish), its ISO 1302
symbol beside the title block, as an AP242 one on the part is drawn (crate::spec_notes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SheetSpec
impl<'de> Deserialize<'de> for SheetSpec
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>,
impl StructuralPartialEq for SheetSpec
Auto Trait Implementations§
impl Forget for SheetSpec
impl Freeze for SheetSpec
impl Move for SheetSpec
impl RefUnwindSafe for SheetSpec
impl Send for SheetSpec
impl Sync for SheetSpec
impl Unpin for SheetSpec
impl UnsafeUnpin for SheetSpec
impl UnwindSafe for SheetSpec
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more