[−][src]Struct debtsolver::Transaction
Represents a transaction where one party (debtor) pays another (creditor) the amount specified.
Methods
impl Transaction
[src]
pub fn new(
debtor: String,
creditor: String,
amount: Money
) -> Result<Self, ParseAmountError>
[src]
debtor: String,
creditor: String,
amount: Money
) -> Result<Self, ParseAmountError>
pub fn from_tuple(
debtor: String,
creditor: String,
amount: (i32, &str)
) -> Result<Self, ParseAmountError>
[src]
debtor: String,
creditor: String,
amount: (i32, &str)
) -> Result<Self, ParseAmountError>
Trait Implementations
impl Debug for Transaction
[src]
impl Display for Transaction
[src]
impl Eq for Transaction
[src]
impl Ord for Transaction
[src]
fn cmp(&self, other: &Transaction) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Transaction> for Transaction
[src]
fn eq(&self, other: &Transaction) -> bool
[src]
fn ne(&self, other: &Transaction) -> bool
[src]
impl PartialOrd<Transaction> for Transaction
[src]
fn partial_cmp(&self, other: &Transaction) -> Option<Ordering>
[src]
fn lt(&self, other: &Transaction) -> bool
[src]
fn le(&self, other: &Transaction) -> bool
[src]
fn gt(&self, other: &Transaction) -> bool
[src]
fn ge(&self, other: &Transaction) -> bool
[src]
impl StructuralEq for Transaction
[src]
impl StructuralPartialEq for Transaction
[src]
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
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> 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 = !
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>,