#[non_exhaustive]pub struct NegativeBalanceError {
pub balance: LindenBalance,
}Expand description
The error from converting a negative LindenBalance into a non-negative
LindenAmount.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.balance: LindenBalanceThe negative balance that could not be represented as a LindenAmount.
Trait Implementations§
Source§impl Clone for NegativeBalanceError
impl Clone for NegativeBalanceError
Source§fn clone(&self) -> NegativeBalanceError
fn clone(&self) -> NegativeBalanceError
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 NegativeBalanceError
impl Debug for NegativeBalanceError
Source§impl Display for NegativeBalanceError
impl Display for NegativeBalanceError
impl Eq for NegativeBalanceError
Source§impl Error for NegativeBalanceError
impl Error for NegativeBalanceError
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 NegativeBalanceError
impl PartialEq for NegativeBalanceError
impl StructuralPartialEq for NegativeBalanceError
Auto Trait Implementations§
impl Freeze for NegativeBalanceError
impl RefUnwindSafe for NegativeBalanceError
impl Send for NegativeBalanceError
impl Sync for NegativeBalanceError
impl Unpin for NegativeBalanceError
impl UnsafeUnpin for NegativeBalanceError
impl UnwindSafe for NegativeBalanceError
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