Enum nash_protocol::types::exchange::Rate [−][src]
pub enum Rate {
OrderRate(OrderRate),
MaxOrderRate,
MinOrderRate,
FeeRate(OrderRate),
MaxFeeRate,
MinFeeRate,
}
Expand description
The Rate enum describes behavior common to rates/prices.
Variants
OrderRate(OrderRate)
Tuple Fields of OrderRate
0: OrderRate
FeeRate(OrderRate)
Tuple Fields of FeeRate
0: OrderRate
Implementations
Return new bigdecimal inner value based on Rate
Subtract fee from user by adjusting the order rate downwards
Trait Implementations
Enum wrappers are kind of annoying. This allows us to use .into()
on a value to generate a wrapped value. For example:
OrderRate::new("1").unwrap().into() => Rate::OrderRate(...)
Auto Trait Implementations
impl RefUnwindSafe for Rate
impl UnwindSafe for Rate
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more