pub struct Problem {
pub id: String,
pub code: String,
pub severity: String,
pub message: String,
pub subjects: Vec<String>,
pub refs: Vec<String>,
pub crossing_kinds: Vec<String>,
pub ink_is_leader: Option<bool>,
pub fix: Vec<Op>,
pub fixes: Vec<Fix>,
}Fields§
§id: String§code: String§severity: Stringerror, warning or info.
message: String§subjects: Vec<String>The items it is about, by their IDs: the plan’s items (crate::items::items, the sheet
as sheet) and the Analysis’s features.
refs: Vec<String>What else it names that is no item of the plan or feature of the Analysis: a PMI
record’s source (its Part 21 provenance, geometric_tolerance:#123), a source not read,
a family the recogniser does not give, a view the plan does not draw, a spec entry not
applied. Tool/version provenance and original reader diagnostics also live here.
Pinned leader crossings repeat the callout ID as pin provenance.
crossing_kinds: Vec<String>Ink crossed by a callout: leader, dimension_line, extension_line, arrow. Multiple kinds can occur for one ordered item pair.
ink_is_leader: Option<bool>Whether annotation_ink_overlap includes a callout line through the label. A flare-only arrowhead contact is false; absent on other problem codes.
fix: Vec<Op>The edit that resolves it, as edit takes it, where there is one.
fixes: Vec<Fix>Alternative operation bundles; use offered_fixes for local → view → sheet order.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Problem
impl<'de> Deserialize<'de> for Problem
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 Problem
impl Freeze for Problem
impl Move for Problem
impl RefUnwindSafe for Problem
impl Send for Problem
impl Sync for Problem
impl Unpin for Problem
impl UnsafeUnpin for Problem
impl UnwindSafe for Problem
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