pub struct PartPropertiesArgs {
pub title: Option<String>,
pub designation: Option<String>,
pub color: Option<String>,
pub material: Option<Material>,
pub face_colors: Vec<FaceColor>,
}Expand description
What a part is, besides its shape.
Fields§
§title: Option<String>What the part is, in words — ISO 4762 socket head cap screw —
where it is listed: a bill of materials, a drawing’s. None for a
part known by its file’s name.
designation: Option<String>What the part is ordered as, before the parameters it is built with
(see Properties::designation): a norm — ISO 4762 — or a
catalogue or part number. None for a part that is made rather than
bought.
color: Option<String>The part’s colour, #rrggbb; none for the viewer’s own.
material: Option<Material>What the part is made of; none for a part whose material is not given, which has a volume and a centroid but no mass.
face_colors: Vec<FaceColor>Faces in a colour of their own, over the part’s: of a face named twice, the later.
Trait Implementations§
Source§impl Clone for PartPropertiesArgs
impl Clone for PartPropertiesArgs
Source§fn clone(&self) -> PartPropertiesArgs
fn clone(&self) -> PartPropertiesArgs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartPropertiesArgs
impl Debug for PartPropertiesArgs
Source§impl Default for PartPropertiesArgs
impl Default for PartPropertiesArgs
Source§fn default() -> PartPropertiesArgs
fn default() -> PartPropertiesArgs
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PartPropertiesArgs
impl<'de> Deserialize<'de> for PartPropertiesArgs
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
Source§impl PartialEq for PartPropertiesArgs
impl PartialEq for PartPropertiesArgs
Source§impl Serialize for PartPropertiesArgs
impl Serialize for PartPropertiesArgs
Source§impl StepArgs for PartPropertiesArgs
impl StepArgs for PartPropertiesArgs
Source§const KIND: &'static str = <PartProperties as ::geop_core_editor::part_operation::PartOperation>::KIND
const KIND: &'static str = <PartProperties as ::geop_core_editor::part_operation::PartOperation>::KIND
The kind of the operation they are for (see
Operation::KIND).impl StructuralPartialEq for PartPropertiesArgs
Auto Trait Implementations§
impl Freeze for PartPropertiesArgs
impl RefUnwindSafe for PartPropertiesArgs
impl Send for PartPropertiesArgs
impl Sync for PartPropertiesArgs
impl Unpin for PartPropertiesArgs
impl UnsafeUnpin for PartPropertiesArgs
impl UnwindSafe for PartPropertiesArgs
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