pub enum PriceDisplayFormat {
CmeFractional {
main_fraction: i32,
sub_fraction: i32,
tick_decimals: i32,
},
}Variants§
Implementations§
Source§impl PriceDisplayFormat
impl PriceDisplayFormat
pub fn main_fraction(&self) -> Option<i32>
pub fn tick_decimals(&self) -> Option<i32>
Trait Implementations§
Source§impl Clone for PriceDisplayFormat
impl Clone for PriceDisplayFormat
Source§fn clone(&self) -> PriceDisplayFormat
fn clone(&self) -> PriceDisplayFormat
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 PriceDisplayFormat
impl Debug for PriceDisplayFormat
Source§impl<'de> Deserialize<'de> for PriceDisplayFormat
impl<'de> Deserialize<'de> for PriceDisplayFormat
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 Display for PriceDisplayFormat
impl Display for PriceDisplayFormat
Source§impl FromStr for PriceDisplayFormat
impl FromStr for PriceDisplayFormat
Source§impl JsonSchema for PriceDisplayFormat
impl JsonSchema for PriceDisplayFormat
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn json_schema(_gen: &mut SchemaGenerator) -> Schema
fn json_schema(_gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for PriceDisplayFormat
impl PartialEq for PriceDisplayFormat
Source§impl Serialize for PriceDisplayFormatwhere
Self: Display,
impl Serialize for PriceDisplayFormatwhere
Self: Display,
impl Copy for PriceDisplayFormat
impl Eq for PriceDisplayFormat
impl StructuralPartialEq for PriceDisplayFormat
Auto Trait Implementations§
impl Freeze for PriceDisplayFormat
impl RefUnwindSafe for PriceDisplayFormat
impl Send for PriceDisplayFormat
impl Sync for PriceDisplayFormat
impl Unpin for PriceDisplayFormat
impl UnwindSafe for PriceDisplayFormat
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