pub struct WriteOffSpec {
pub invoice: usize,
pub amount: Option<String>,
pub reason: String,
}Expand description
A write-off of the invoice an earlier event posted (rules.md B-41; plan P4b S7): the invoice’s event, what to write off and why.
Fields§
§invoice: usizeThe event (1-based) whose invoice this writes off: an invoice
event before it.
amount: Option<String>How much to write off, an exact decimal string above zero; left out, all the invoice owes on the day.
reason: StringWhy it will not be collected (collection correspondence, a bankruptcy), one line.
Trait Implementations§
Source§impl Clone for WriteOffSpec
impl Clone for WriteOffSpec
Source§fn clone(&self) -> WriteOffSpec
fn clone(&self) -> WriteOffSpec
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 WriteOffSpec
impl Debug for WriteOffSpec
Source§impl<'de> Deserialize<'de> for WriteOffSpec
impl<'de> Deserialize<'de> for WriteOffSpec
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 WriteOffSpec
impl PartialEq for WriteOffSpec
impl StructuralPartialEq for WriteOffSpec
Auto Trait Implementations§
impl Freeze for WriteOffSpec
impl RefUnwindSafe for WriteOffSpec
impl Send for WriteOffSpec
impl Sync for WriteOffSpec
impl Unpin for WriteOffSpec
impl UnsafeUnpin for WriteOffSpec
impl UnwindSafe for WriteOffSpec
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