[−][src]Struct qif_generator::transaction::Transaction
Single QIF transaction
Implementations
impl<'a> Transaction<'a>
[src]
pub fn new(acc: &'a Account) -> Self
[src]
pub fn date(mut self: Self, val: Date<Utc>) -> Self
[src]
pub fn amount(mut self: Self, val: f64) -> Self
[src]
pub fn payee(mut self: Self, val: &str) -> Self
[src]
pub fn memo(mut self: Self, val: &str) -> Self
[src]
pub fn category(mut self: Self, val: &str) -> Self
[src]
pub fn cleared_status(mut self: Self, val: &str) -> Self
[src]
pub fn splits(mut self: Self, val: Vec<Split>) -> Self
[src]
pub fn build(self) -> Result<Transaction<'a>, String>
[src]
pub fn with_split(mut self: Self, val: &Split) -> Self
[src]
pub fn with_splits(mut self: Self, val: &[Split]) -> Self
[src]
pub fn sum(&self) -> f64
[src]
Trait Implementations
impl<'a> Debug for Transaction<'a>
[src]
impl<'a> Display for Transaction<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for Transaction<'a>
[src]
impl<'a> Send for Transaction<'a>
[src]
impl<'a> Sync for Transaction<'a>
[src]
impl<'a> Unpin for Transaction<'a>
[src]
impl<'a> UnwindSafe for Transaction<'a>
[src]
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,
pub 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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
pub 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>,