pub enum MoneyCell {
Single(String),
Pair(MoneyPair),
}Expand description
A monetary cell: a single field carrying the whole formatted amount (2024/2025), or a
dollars+cents MoneyPair (the 2017 forms). Deserializes untagged: a TOML string →
MoneyCell::Single; a TOML inline table { dollars_field, cents_field } →
MoneyCell::Pair.
Variants§
Single(String)
A single field holding the whole formatted amount.
Pair(MoneyPair)
A dollars-field + cents-field pair.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MoneyCell
impl<'de> Deserialize<'de> for MoneyCell
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 MoneyCell
impl RefUnwindSafe for MoneyCell
impl Send for MoneyCell
impl Sync for MoneyCell
impl Unpin for MoneyCell
impl UnsafeUnpin for MoneyCell
impl UnwindSafe for MoneyCell
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