pub struct CorrectSpec {
pub asset: String,
pub cost: Option<String>,
pub salvage: Option<String>,
pub life_months: Option<u32>,
pub in_service: Option<String>,
pub reason: String,
}Expand description
A registered asset’s economics corrected for reason: each figure
given replaces the asset’s; the rest stay.
Fields§
§asset: StringA setup.assets id.
cost: Option<String>Its new cost.
salvage: Option<String>Its new salvage value.
life_months: Option<u32>Its new useful life, above zero.
in_service: Option<String>Its new in-service day.
reason: StringWhy it is corrected.
Trait Implementations§
Source§impl Clone for CorrectSpec
impl Clone for CorrectSpec
Source§fn clone(&self) -> CorrectSpec
fn clone(&self) -> CorrectSpec
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 CorrectSpec
impl Debug for CorrectSpec
Source§impl<'de> Deserialize<'de> for CorrectSpec
impl<'de> Deserialize<'de> for CorrectSpec
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 CorrectSpec
impl PartialEq for CorrectSpec
impl StructuralPartialEq for CorrectSpec
Auto Trait Implementations§
impl Freeze for CorrectSpec
impl RefUnwindSafe for CorrectSpec
impl Send for CorrectSpec
impl Sync for CorrectSpec
impl Unpin for CorrectSpec
impl UnsafeUnpin for CorrectSpec
impl UnwindSafe for CorrectSpec
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