Skip to main content

SheetSpec

Struct SheetSpec 

Source
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: Mode

Inspection 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.

§hidden: Option<bool>

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 Clone for SheetSpec

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SheetSpec

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SheetSpec

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for SheetSpec

Source§

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 SheetSpec

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SheetSpec

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SheetSpec

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> Finish for T

Source§

fn finish(self)

Does nothing but move self, equivalent to drop.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.