pub struct Posting { /* private fields */ }Implementations§
Source§impl Posting
impl Posting
pub const fn new( account: LedgerAccount, side: PostingSide, amount: Money, ) -> Self
pub const fn try_new( account: LedgerAccount, side: PostingSide, amount: Money, ) -> Result<Self, ValidationError>
pub fn account(&self) -> <LedgerAccount as FieldAccess>::Output<'_>
pub fn side(&self) -> <PostingSide as FieldAccess>::Output<'_>
pub fn amount(&self) -> <Money as FieldAccess>::Output<'_>
Trait Implementations§
impl Eq for Posting
impl StructuralPartialEq for Posting
Auto Trait Implementations§
impl Freeze for Posting
impl RefUnwindSafe for Posting
impl Send for Posting
impl Sync for Posting
impl Unpin for Posting
impl UnsafeUnpin for Posting
impl UnwindSafe 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