Struct ContractRules

Source
pub struct ContractRules { /* private fields */ }

Implementations§

Source§

impl ContractRules

Source

pub fn new() -> ContractRules

Source

pub fn set_default_size(&mut self, default_size: f32)

Source

pub fn with_default_size(self, default_size: f32) -> ContractRules

Source

pub fn default_size(&self) -> Option<&f32>

Source

pub fn reset_default_size(&mut self)

Source

pub fn set_display_size(&mut self, display_size: String)

Source

pub fn with_display_size(self, display_size: String) -> ContractRules

Source

pub fn display_size(&self) -> Option<&String>

Source

pub fn reset_display_size(&mut self)

Source

pub fn set_increment(&mut self, increment: String)

Source

pub fn with_increment(self, increment: String) -> ContractRules

Source

pub fn increment(&self) -> Option<&String>

Source

pub fn reset_increment(&mut self)

Source

pub fn set_limit_price(&mut self, limit_price: f32)

Source

pub fn with_limit_price(self, limit_price: f32) -> ContractRules

Source

pub fn limit_price(&self) -> Option<&f32>

Source

pub fn reset_limit_price(&mut self)

Source

pub fn set_order_types(&mut self, order_types: Vec<String>)

Source

pub fn with_order_types(self, order_types: Vec<String>) -> ContractRules

Source

pub fn order_types(&self) -> Option<&Vec<String>>

Source

pub fn reset_order_types(&mut self)

Source

pub fn set_order_types_outside(&mut self, order_types_outside: Vec<String>)

Source

pub fn with_order_types_outside( self, order_types_outside: Vec<String>, ) -> ContractRules

Source

pub fn order_types_outside(&self) -> Option<&Vec<String>>

Source

pub fn reset_order_types_outside(&mut self)

Source

pub fn set_preview(&mut self, preview: bool)

Source

pub fn with_preview(self, preview: bool) -> ContractRules

Source

pub fn preview(&self) -> Option<&bool>

Source

pub fn reset_preview(&mut self)

Source

pub fn set_size_increment(&mut self, size_increment: f32)

Source

pub fn with_size_increment(self, size_increment: f32) -> ContractRules

Source

pub fn size_increment(&self) -> Option<&f32>

Source

pub fn reset_size_increment(&mut self)

Source

pub fn set_stopprice(&mut self, stopprice: f32)

Source

pub fn with_stopprice(self, stopprice: f32) -> ContractRules

Source

pub fn stopprice(&self) -> Option<&f32>

Source

pub fn reset_stopprice(&mut self)

Source

pub fn set_tif_types(&mut self, tif_types: Vec<String>)

Source

pub fn with_tif_types(self, tif_types: Vec<String>) -> ContractRules

Source

pub fn tif_types(&self) -> Option<&Vec<String>>

Source

pub fn reset_tif_types(&mut self)

Trait Implementations§

Source§

impl Debug for ContractRules

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ContractRules

Source§

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 Serialize for ContractRules

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,