pub struct Posting {
pub date: NaiveDate,
pub amount: Option<Money>,
pub balance: Option<Money>,
pub cost: Option<Cost>,
pub kind: PostingType,
pub comments: Vec<Comment>,
pub tags: RefCell<Vec<Tag>>,
pub payee: Option<Rc<Payee>>,
pub transaction: RefCell<Weak<Transaction<Posting>>>,
pub origin: PostingOrigin,
/* private fields */
}Fields§
§date: NaiveDate§amount: Option<Money>§balance: Option<Money>§cost: Option<Cost>§kind: PostingType§comments: Vec<Comment>§payee: Option<Rc<Payee>>§transaction: RefCell<Weak<Transaction<Posting>>>§origin: PostingOriginImplementations§
Source§impl Posting
impl Posting
pub fn new( account: &Rc<Account>, kind: PostingType, payee: &Payee, origin: PostingOrigin, date: NaiveDate, ) -> Posting
pub fn set_amount(&mut self, money: Money)
pub fn has_tag(&self, regex: Regex) -> bool
pub fn get_tag(&self, regex: Regex) -> Option<String>
pub fn get_exact_tag(&self, regex: String) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Posting
impl !RefUnwindSafe for Posting
impl !Send for Posting
impl !Sync for Posting
impl !UnwindSafe for Posting
impl Unpin for Posting
impl UnsafeUnpin for Posting
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