[−][src]Struct doublecount::TransactionElement
An element of a Transaction.
Fields
account: Rc<Account>
The account to perform the transaction to
amount: Option<Commodity>
The amount of Commodity to add to the account.
This may be None
, if it is the only element within a
Transaction, which is None. If it is None
,
it's amount will be automatically calculated from the amounts
in the other elements present in the transaction.
exchange_rate: Option<ExchangeRate>
The exchange rate to use for converting the amount in this element to a different Currency
Methods
impl TransactionElement
[src]
pub fn new(
account: Rc<Account>,
amount: Option<Commodity>,
exchange_rate: Option<ExchangeRate>
) -> TransactionElement
[src]
account: Rc<Account>,
amount: Option<Commodity>,
exchange_rate: Option<ExchangeRate>
) -> TransactionElement
Create a new TransactionElement.
Trait Implementations
impl Clone for TransactionElement
[src]
fn clone(&self) -> TransactionElement
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransactionElement
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TransactionElement
impl !Send for TransactionElement
impl !Sync for TransactionElement
impl Unpin for TransactionElement
impl !UnwindSafe for TransactionElement
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,