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