pub struct Plan {Show 32 fields
pub migrated: Vec<Migrated>,
pub ids: BTreeMap<String, String>,
pub recognition_corrections: Vec<Applied>,
pub schema: String,
pub binding: Binding,
pub analysis_sha256: Option<String>,
pub feature_dispositions: Vec<FeatureDisposition>,
pub status: Status,
pub completeness: Completeness,
pub sheet: PlannedSheet,
pub sheets: Vec<PlannedSheet>,
pub sheet_candidates: Vec<Candidate>,
pub table_outcome: TableOutcome,
pub views: Vec<PlannedView>,
pub captions: Vec<PlannedCaption>,
pub dimensions: Vec<PlannedDimension>,
pub omitted: Vec<Omitted>,
pub notes: Vec<PlannedNote>,
pub notes_block: Option<NotesBlock>,
pub radius_notes_block: Option<NotesBlock>,
pub radius_table: Option<RadiusTable>,
pub tables: Vec<PlannedTable>,
pub gdt: Vec<PlannedGdt>,
pub requirements: Vec<PlannedRequirement>,
pub process: Option<Resolved>,
pub hole_table: Option<HoleTable>,
pub hole_tables: Vec<HoleTable>,
pub balloons: Vec<Balloon>,
pub characteristics: Vec<Characteristic>,
pub inspection_balloons: Vec<Balloon>,
pub problems: Vec<Problem>,
pub spec: Spec,
/* private fields */
}Expand description
What the sheet will say.
Fields§
§migrated: Vec<Migrated>§ids: BTreeMap<String, String>§recognition_corrections: Vec<Applied>Authored recognition changes, including suppression with no resulting annotation.
schema: String§binding: Binding§analysis_sha256: Option<String>Digest of the complete Analysis, including the supplied recognition, that determined this plan. Absent only in older saved plans. The Spec is embedded separately.
feature_dispositions: Vec<FeatureDisposition>Per-occurrence policy for recognised evidence without a dimension owner. Informational; unsupported manufacturing requirements retain their independent warnings.
status: Status§completeness: Completeness§sheet: PlannedSheet§sheets: Vec<PlannedSheet>§sheet_candidates: Vec<Candidate>Ordered automatic paper trials, including cheap footprint refusals.
table_outcome: TableOutcomeEscalation evidence for allocation; never inferred from a problem sentence.
views: Vec<PlannedView>§captions: Vec<PlannedCaption>Required late sheet furniture, reserved before the notes and tables.
dimensions: Vec<PlannedDimension>Dimensions and callouts, each with its ID, value, label, default flag and basis.
omitted: Vec<Omitted>Dimensions the spec leaves out, and why (ADR4-8: an authored omission says so).
notes: Vec<PlannedNote>General notes, each with its ID, text, rows, default flag, basis and place.
notes_block: Option<NotesBlock>The block the notes are drawn in, when it has a place.
radius_notes_block: Option<NotesBlock>A separate compact radius block when authored/PMI notes keep their ruled table.
radius_table: Option<RadiusTable>Obstructed radius groups, located by every occurrence’s centre in its named view.
tables: Vec<PlannedTable>Corner-block tables, each with its ID, cells, default flag, basis and place.
gdt: Vec<PlannedGdt>The part’s AP242 geometric tolerances and datums as feature control frames and datum
feature symbols, each with its ID, view, compartments, basis and place
(crate::dims::gdt).
requirements: Vec<PlannedRequirement>The part’s drawing-wide AP242 requirements (general tolerance, default surface finish,
edge conditions), each with what carries it (crate::pmi_lowering::plan_sheet).
process: Option<Resolved>§hole_table: Option<HoleTable>The plan-view hole table a dropped hole item escalated to (crate::hole_table).
hole_tables: Vec<HoleTable>Hole schedules chosen for legibility, one per end-on principal view.
balloons: Vec<Balloon>The balloons beside the plan view: the hole table’s rows’ and dropped patterns’.
characteristics: Vec<Characteristic>File-owned characteristic numbers and their resolved drawing carriers.
inspection_balloons: Vec<Balloon>§problems: Vec<Problem>§spec: SpecThe spec the plan was made from, embedded in every output.
Implementations§
Source§impl Plan
impl Plan
Sourcepub fn automatic_dimension_label(&self, id: &str) -> Option<(&str, [f64; 2])>
pub fn automatic_dimension_label(&self, id: &str) -> Option<(&str, [f64; 2])>
A linear dimension’s canonical label position in paper mm. Planning metadata only.
Sourcepub fn canonical_callout_width(&self, view: &str) -> Option<f64>
pub fn canonical_callout_width(&self, view: &str) -> Option<f64>
Widest canonical callout in a view, in paper mm. None for a view without callouts or a deserialised Plan: this metadata is retained only by planning.
Sourcepub fn automatic_callout_tip(&self, id: &str) -> Option<(&str, [f64; 2])>
pub fn automatic_callout_tip(&self, id: &str) -> Option<(&str, [f64; 2])>
A callout’s automatic leader tip (view, [x, y]) in paper mm, from which a pinned
place.offset is measured. None for a non-callout, one with no automatic placement, or
a deserialised Plan: this metadata is retained only by planning.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Plan
impl<'de> Deserialize<'de> for Plan
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>,
Auto Trait Implementations§
impl Forget for Plan
impl Freeze for Plan
impl Move for Plan
impl RefUnwindSafe for Plan
impl Send for Plan
impl Sync for Plan
impl Unpin for Plan
impl UnsafeUnpin for Plan
impl UnwindSafe for Plan
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