pub struct BaseMaterial {
pub name: String,
pub display_color: Color,
}Expand description
A base material with a name and display color.
Base materials represent named material types (e.g., “PLA”, “ABS”, “Steel”) with an associated display color for visualization. The actual material properties are typically handled by the printer/slicer software based on the name.
Fields§
§name: StringHuman-readable material name
display_color: ColorDisplay color for visualization
Trait Implementations§
Source§impl Clone for BaseMaterial
impl Clone for BaseMaterial
Source§fn clone(&self) -> BaseMaterial
fn clone(&self) -> BaseMaterial
Returns a duplicate of the value. Read more
1.0.0 · 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 BaseMaterial
impl Debug for BaseMaterial
Source§impl<'de> Deserialize<'de> for BaseMaterial
impl<'de> Deserialize<'de> for BaseMaterial
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 Freeze for BaseMaterial
impl RefUnwindSafe for BaseMaterial
impl Send for BaseMaterial
impl Sync for BaseMaterial
impl Unpin for BaseMaterial
impl UnwindSafe for BaseMaterial
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