#[non_exhaustive]pub struct ComponentChange {
pub parent: String,
pub child: String,
pub old: f64,
pub new: f64,
}Expand description
The total quantity of one component in one assembly.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.parent: StringThe assembly’s product key.
child: StringThe component’s product key.
old: f64Quantity in the first file; 0 if not used there.
new: f64Quantity in the second file; 0 if not used there.
Trait Implementations§
Source§impl Clone for ComponentChange
impl Clone for ComponentChange
Source§fn clone(&self) -> ComponentChange
fn clone(&self) -> ComponentChange
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 ComponentChange
impl Debug for ComponentChange
Source§impl PartialEq for ComponentChange
impl PartialEq for ComponentChange
Source§impl Serialize for ComponentChange
Available on crate feature serde only.
impl Serialize for ComponentChange
Available on crate feature
serde only.impl StructuralPartialEq for ComponentChange
Auto Trait Implementations§
impl Freeze for ComponentChange
impl RefUnwindSafe for ComponentChange
impl Send for ComponentChange
impl Sync for ComponentChange
impl Unpin for ComponentChange
impl UnsafeUnpin for ComponentChange
impl UnwindSafe for ComponentChange
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