Struct ledger_parser::PostingAmount
source · pub struct PostingAmount {
pub amount: Amount,
pub lot_price: Option<Price>,
pub price: Option<Price>,
}
Fields§
§amount: Amount
§lot_price: Option<Price>
§price: Option<Price>
Trait Implementations§
source§impl Clone for PostingAmount
impl Clone for PostingAmount
source§fn clone(&self) -> PostingAmount
fn clone(&self) -> PostingAmount
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for PostingAmount
impl Debug for PostingAmount
source§impl Display for PostingAmount
impl Display for PostingAmount
source§impl PartialEq for PostingAmount
impl PartialEq for PostingAmount
source§fn eq(&self, other: &PostingAmount) -> bool
fn eq(&self, other: &PostingAmount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serializer for PostingAmount
impl Serializer for PostingAmount
fn write<W>(
&self,
writer: &mut W,
settings: &SerializerSettings
) -> Result<(), Error>where
W: Write,
fn to_string_pretty(&self, settings: &SerializerSettings) -> String
impl Eq for PostingAmount
impl StructuralPartialEq for PostingAmount
Auto Trait Implementations§
impl RefUnwindSafe for PostingAmount
impl Send for PostingAmount
impl Sync for PostingAmount
impl Unpin for PostingAmount
impl UnwindSafe for PostingAmount
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