pub struct Balance {
pub date: NaiveDate,
pub account: AccountName,
pub amount: Amount,
pub tolerance: Option<Decimal>,
pub meta: Metadata,
}Expand description
Expected balance of an account on a date.
Fields§
§date: NaiveDateDate of the assertion.
account: AccountNameAccount whose balance is asserted.
amount: AmountExpected amount.
tolerance: Option<Decimal>Optional allowed difference. Without it, the assertion must match exactly.
meta: MetadataMetadata attached to the directive.
Trait Implementations§
impl StructuralPartialEq for Balance
Auto Trait Implementations§
impl Freeze for Balance
impl RefUnwindSafe for Balance
impl Send for Balance
impl Sync for Balance
impl Unpin for Balance
impl UnsafeUnpin for Balance
impl UnwindSafe for Balance
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