pub struct LengthUnitReport {Show 15 fields
pub from: String,
pub to: String,
pub length_factor: f64,
pub area_factor: Option<f64>,
pub volume_factor: Option<f64>,
pub length_unit: Option<u64>,
pub area_unit: Option<u64>,
pub volume_unit: Option<u64>,
pub converted: Vec<ConvertedValues>,
pub kept: Vec<KeptValues>,
pub entities_changed: usize,
pub values_converted: usize,
pub created: Vec<u64>,
pub removed: Vec<u64>,
pub applied: bool,
}Expand description
What a length-unit conversion did, or, for a dry run, would do.
Fields§
§from: StringThe project length unit before, as named.
to: StringThe project length unit after.
length_factor: f64The factor lengths were multiplied by.
area_factor: Option<f64>The factor areas were multiplied by, when the area unit followed.
volume_factor: Option<f64>The factor volumes were multiplied by, when the volume unit followed.
length_unit: Option<u64>The new length unit entity; None when nothing changes.
area_unit: Option<u64>The new area unit entity.
volume_unit: Option<u64>The new volume unit entity.
converted: Vec<ConvertedValues>Rescaled values per entity type and attribute.
kept: Vec<KeptValues>Values left as they are, with the reason.
entities_changed: usizeEntities with at least one rescaled value.
values_converted: usizeNumbers rescaled.
created: Vec<u64>Entities created, or for a dry run the ids the commit will create.
removed: Vec<u64>Entities removed, or for a dry run planned for removal.
applied: boolWhether the model was changed.
Trait Implementations§
Source§impl Clone for LengthUnitReport
impl Clone for LengthUnitReport
Source§fn clone(&self) -> LengthUnitReport
fn clone(&self) -> LengthUnitReport
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 LengthUnitReport
impl Debug for LengthUnitReport
Source§impl PartialEq for LengthUnitReport
impl PartialEq for LengthUnitReport
impl StructuralPartialEq for LengthUnitReport
Auto Trait Implementations§
impl Freeze for LengthUnitReport
impl RefUnwindSafe for LengthUnitReport
impl Send for LengthUnitReport
impl Sync for LengthUnitReport
impl Unpin for LengthUnitReport
impl UnsafeUnpin for LengthUnitReport
impl UnwindSafe for LengthUnitReport
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