pub struct SliceFilamentUsage {
pub id: u32,
pub tray_info_idx: Option<String>,
pub type_: Option<String>,
pub color: Option<String>,
pub used_m: Option<f32>,
pub used_g: Option<f32>,
}Expand description
Per-filament usage data for a plate.
Fields§
§id: u32Filament slot index.
tray_info_idx: Option<String>AMS tray info index.
type_: Option<String>Filament type string (e.g., "PLA").
color: Option<String>Display color in hex format.
used_m: Option<f32>Filament used in meters.
used_g: Option<f32>Filament used in grams.
Trait Implementations§
Source§impl Clone for SliceFilamentUsage
impl Clone for SliceFilamentUsage
Source§fn clone(&self) -> SliceFilamentUsage
fn clone(&self) -> SliceFilamentUsage
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 SliceFilamentUsage
impl Debug for SliceFilamentUsage
Source§impl Default for SliceFilamentUsage
impl Default for SliceFilamentUsage
Source§fn default() -> SliceFilamentUsage
fn default() -> SliceFilamentUsage
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SliceFilamentUsage
impl RefUnwindSafe for SliceFilamentUsage
impl Send for SliceFilamentUsage
impl Sync for SliceFilamentUsage
impl Unpin for SliceFilamentUsage
impl UnsafeUnpin for SliceFilamentUsage
impl UnwindSafe for SliceFilamentUsage
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
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