pub enum BookingError {
TooFewPostings,
ZeroPosting(usize),
Unbalanced {
owner: PartyId,
difference: Money,
},
Overflow,
}Expand description
Why a booking is not valid.
Variants§
TooFewPostings
Fewer than two postings.
ZeroPosting(usize)
A posting of zero.
Unbalanced
Debit and credit differ for an owner in a currency.
Overflow
The sums do not fit the number range.
Trait Implementations§
Source§impl Clone for BookingError
impl Clone for BookingError
Source§fn clone(&self) -> BookingError
fn clone(&self) -> BookingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 BookingError
impl Debug for BookingError
Source§impl Display for BookingError
impl Display for BookingError
impl Eq for BookingError
Source§impl Error for BookingError
impl Error for BookingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for BookingError
impl PartialEq for BookingError
impl StructuralPartialEq for BookingError
Auto Trait Implementations§
impl Freeze for BookingError
impl RefUnwindSafe for BookingError
impl Send for BookingError
impl Sync for BookingError
impl Unpin for BookingError
impl UnsafeUnpin for BookingError
impl UnwindSafe for BookingError
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