pub struct UsageValue {
pub units: Decimal,
pub price_cents: Decimal,
}Fields§
§units: Decimal§price_cents: DecimalTrait Implementations§
Source§impl Clone for UsageValue
impl Clone for UsageValue
Source§fn clone(&self) -> UsageValue
fn clone(&self) -> UsageValue
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 moreimpl Copy for UsageValue
Source§impl Debug for UsageValue
impl Debug for UsageValue
Source§impl Default for UsageValue
impl Default for UsageValue
Source§fn default() -> UsageValue
fn default() -> UsageValue
Returns the “default value” for a type. Read more
impl Eq for UsageValue
Source§impl PartialEq for UsageValue
impl PartialEq for UsageValue
impl StructuralPartialEq for UsageValue
Auto Trait Implementations§
impl Freeze for UsageValue
impl RefUnwindSafe for UsageValue
impl Send for UsageValue
impl Sync for UsageValue
impl Unpin for UsageValue
impl UnsafeUnpin for UsageValue
impl UnwindSafe for UsageValue
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