pub struct Annotation {
pub name: String,
pub view: Option<String>,
pub runs: Vec<usize>,
pub claims: Vec<Claim>,
pub approved_claims: Vec<Claim>,
pub approved_text: Option<String>,
pub coordinate_origin: Option<[f64; 3]>,
pub satisfies: Vec<Claim>,
}Expand description
What an annotation on the drawing is, for lint (crate::lint), which judges the drawing
from what it draws rather than from the plan it was drawn from: its label’s text runs, the
view it belongs to and the measurements it claims to state. The claims are provenance, as
Python draftwright’s registry is; lint still checks the label’s text against the part.
Fields§
§name: StringThe plan item it draws, e.g. d:f:hole:f55/bore.diameter.
view: Option<String>The view, v:<name>; none for sheet furniture.
runs: Vec<usize>Its label’s runs, as indices into Drawing::text.
claims: Vec<Claim>§approved_claims: Vec<Claim>The compiler-bound identities belonging to the approved cell. These remain separate from its live claims so a changed owner or parameter loses proof. Manufacturing rows retain source provenance here without adding a second physical measurement owner.
approved_text: Option<String>Display-complete compiler approval for a measurement schedule cell. Kept apart from its actual text runs so damaged content cannot certify itself. This is evidence only; the physical requirement inventory still comes independently from Analysis.
coordinate_origin: Option<[f64; 3]>Model-space datum of a coordinate schedule cell, resolved by the Plan.
satisfies: Vec<Claim>Explicit structured-note authority; prose is never parsed to infer these identities.
Trait Implementations§
Source§impl Clone for Annotation
impl Clone for Annotation
Source§impl Debug for Annotation
impl Debug for Annotation
Source§impl Default for Annotation
impl Default for Annotation
Source§impl<'de> Deserialize<'de> for Annotation
impl<'de> Deserialize<'de> for Annotation
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>,
Source§impl PartialEq for Annotation
impl PartialEq for Annotation
Source§impl Serialize for Annotation
impl Serialize for Annotation
impl StructuralPartialEq for Annotation
Auto Trait Implementations§
impl Forget for Annotation
impl Freeze for Annotation
impl Move for Annotation
impl RefUnwindSafe for Annotation
impl Send for Annotation
impl Sync for Annotation
impl Unpin for Annotation
impl UnsafeUnpin for Annotation
impl UnwindSafe for Annotation
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