Struct beancount_parser::Pad
source · pub struct Pad<'a> { /* private fields */ }Expand description
Padding directive
The padding directive is an instruction to automatically insert a transaction that will make the next balance assertion to succeed.
See: https://beancount.github.io/docs/beancount_language_syntax.html#pad
Implementations§
source§impl<'a> Pad<'a>
impl<'a> Pad<'a>
sourcepub fn target_account(&self) -> &Account<'a>
pub fn target_account(&self) -> &Account<'a>
Account to credit on the next balance assertion
It is the account that must have a balance assertion for the pad to be effective
It is the first account mentionned in the directive
sourcepub fn source_account(&self) -> &Account<'a>
pub fn source_account(&self) -> &Account<'a>
Source of the founds when the Self::target_account is padded
It is the second account mentionned in the directive
Trait Implementations§
source§impl<'a> PartialEq<Pad<'a>> for Pad<'a>
impl<'a> PartialEq<Pad<'a>> for Pad<'a>
impl<'a> Eq for Pad<'a>
impl<'a> StructuralEq for Pad<'a>
impl<'a> StructuralPartialEq for Pad<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Pad<'a>
impl<'a> Send for Pad<'a>
impl<'a> Sync for Pad<'a>
impl<'a> Unpin for Pad<'a>
impl<'a> UnwindSafe for Pad<'a>
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