pub struct StepRecord {
pub from_value: Decimal,
pub step: Decimal,
}
Expand description
Structure representing a record step
Fields§
§from_value: Decimal
Lower border of the volume range
step: Decimal
LotStep value in the given volume range
Implementations§
Source§impl StepRecord
impl StepRecord
Sourcepub fn with_from_value(self, value: impl Into<Decimal>) -> Self
pub fn with_from_value(self, value: impl Into<Decimal>) -> Self
Sets the from_value
field of this struct.
Trait Implementations§
Source§impl Clone for StepRecord
impl Clone for StepRecord
Source§fn clone(&self) -> StepRecord
fn clone(&self) -> StepRecord
Returns a duplicate of the value. Read more
1.0.0 · 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 StepRecord
impl Debug for StepRecord
Source§impl Default for StepRecord
impl Default for StepRecord
Source§fn default() -> StepRecord
fn default() -> StepRecord
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StepRecord
impl<'de> Deserialize<'de> for StepRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for StepRecord
impl PartialEq for StepRecord
Source§impl Serialize for StepRecord
impl Serialize for StepRecord
impl StructuralPartialEq for StepRecord
Auto Trait Implementations§
impl Freeze for StepRecord
impl RefUnwindSafe for StepRecord
impl Send for StepRecord
impl Sync for StepRecord
impl Unpin for StepRecord
impl UnwindSafe for StepRecord
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