pub struct PlannedView {Show 19 fields
pub detail: Option<Detail>,
pub sheet: u32,
pub scale_note: Option<String>,
pub xref: Option<CrossRef>,
pub id: String,
pub direction: [f64; 3],
pub up: [f64; 3],
pub at: [f64; 2],
pub scale: f64,
pub area: [f64; 4],
pub default: bool,
pub basis: String,
pub state: State,
pub line_work: Vec<LineWork>,
pub line_style: Settings,
pub from_spec: Vec<String>,
pub cut: Option<Cut>,
pub half_section: Option<HalfSection>,
pub broken: Option<Break>,
}Fields§
§detail: Option<Detail>§sheet: u32§scale_note: Option<String>§xref: Option<CrossRef>§id: String§direction: [f64; 3]Towards the viewer, and the view’s up.
up: [f64; 3]§at: [f64; 2]Where the centre of the part’s box lands on the page, mm.
scale: f64The view’s own scale: the sheet’s, except an isometric resized to fill its space.
area: [f64; 4]The page area reserved for the view, [x0, y0, x1, y1] mm: a principal view’s box with
its annotation bands, or the isometric’s rectangle.
default: bool§basis: String§state: StateAlways shown: a view the plan does not draw is not among its views.
line_work: Vec<LineWork>Automatic chain-line furniture, in paper coordinates; never Spec-addressable.
line_style: SettingsEffective authored line-work settings (view before sheet); absent preserves defaults.
from_spec: Vec<String>§cut: Option<Cut>A section view’s cutting plane.
half_section: Option<HalfSection>A profile view drawn as a half section (crate::half_section).
broken: Option<Break>Trait Implementations§
Source§impl Clone for PlannedView
impl Clone for PlannedView
Source§impl Debug for PlannedView
impl Debug for PlannedView
Source§impl<'de> Deserialize<'de> for PlannedView
impl<'de> Deserialize<'de> for PlannedView
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for PlannedView
impl Freeze for PlannedView
impl Move for PlannedView
impl RefUnwindSafe for PlannedView
impl Send for PlannedView
impl Sync for PlannedView
impl Unpin for PlannedView
impl UnsafeUnpin for PlannedView
impl UnwindSafe for PlannedView
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
Mutably borrows from an owned value. Read more
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> ⓘ
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 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> ⓘ
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