pub trait FromU8 { // Required method fn from_u8(value: u8) -> Option<Self> where Self: Sized; }
Provides conversion from a u8 value to an enum type.
u8
Converts a u8 value to the implementing type.
Returns None if the value is not a valid representation.
None
Convert the given value to an InstrumentCloseType.
value
InstrumentCloseType
Convert the given value to an OrderSide.
OrderSide