pub struct TransformQuantity {
pub divide_by: i64,
pub round: TransformQuantityRound,
}Fields§
§divide_by: i64Divide usage by this number.
round: TransformQuantityRoundAfter division, either round the result up or down.
Trait Implementations§
Source§impl Clone for TransformQuantity
impl Clone for TransformQuantity
Source§fn clone(&self) -> TransformQuantity
fn clone(&self) -> TransformQuantity
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 TransformQuantity
impl Debug for TransformQuantity
Source§impl Deserialize for TransformQuantity
impl Deserialize for TransformQuantity
Source§impl FromValueOpt for TransformQuantity
impl FromValueOpt for TransformQuantity
fn from_value(v: Value) -> Option<Self>
Source§impl PartialEq for TransformQuantity
impl PartialEq for TransformQuantity
Source§fn eq(&self, other: &TransformQuantity) -> bool
fn eq(&self, other: &TransformQuantity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for TransformQuantity
impl StructuralPartialEq for TransformQuantity
Auto Trait Implementations§
impl Freeze for TransformQuantity
impl RefUnwindSafe for TransformQuantity
impl Send for TransformQuantity
impl Sync for TransformQuantity
impl Unpin for TransformQuantity
impl UnsafeUnpin for TransformQuantity
impl UnwindSafe for TransformQuantity
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