pub struct Journal {
pub master: Box<Account>,
pub commodity_pool: CommodityPool,
pub xacts: Vec<Xact>,
}
Fields§
§master: Box<Account>
§commodity_pool: CommodityPool
§xacts: Vec<Xact>
Implementations§
Source§impl Journal
impl Journal
pub fn new() -> Self
pub fn add_xact(&mut self, xact: Xact) -> &Xact
pub fn all_posts(&self) -> Vec<&Post>
pub fn get_account(&self, acct_ptr: *const Account) -> &Account
pub fn get_account_mut(&self, acct_ptr: *const Account) -> &mut Account
pub fn get_commodity(&self, index: CommodityIndex) -> &Commodity
Sourcepub fn register_account(&mut self, name: &str) -> Option<*const Account>
pub fn register_account(&mut self, name: &str) -> Option<*const Account>
Called to create an account during Post parsing.
account_t * journal_t::register_account(const string& name, post_t * post, account_t * master_account)
pub fn find_account(&self, name: &str) -> Option<&Account>
Auto Trait Implementations§
impl Freeze for Journal
impl RefUnwindSafe for Journal
impl !Send for Journal
impl !Sync for Journal
impl Unpin for Journal
impl UnwindSafe for Journal
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