pub struct CostCharge {
pub amount: f64,
pub basis: CostBasis,
}Expand description
One computed signed charge before any account conversion.
Fields§
§amount: f64Positive reduces the balance, negative increases it.
basis: CostBasisTrait Implementations§
Source§impl Clone for CostCharge
impl Clone for CostCharge
impl Copy for CostCharge
Source§impl Debug for CostCharge
impl Debug for CostCharge
Source§impl PartialEq for CostCharge
impl PartialEq for CostCharge
impl StructuralPartialEq for CostCharge
Auto Trait Implementations§
impl Freeze for CostCharge
impl RefUnwindSafe for CostCharge
impl Send for CostCharge
impl Sync for CostCharge
impl Unpin for CostCharge
impl UnsafeUnpin for CostCharge
impl UnwindSafe for CostCharge
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