pub struct OptionOrderPreviewResponse {
pub id: String,
pub commission: f64,
pub estimated_cost: f64,
pub estimated_proceeds: f64,
pub buying_power_effect: f64,
pub margin_requirement: f64,
pub error_message: Option<String>,
pub warning_message: Option<String>,
}Expand description
Option order preview response.
Fields§
§id: StringOrder ID
commission: f64Commission
estimated_cost: f64Estimated cost
estimated_proceeds: f64Estimated proceeds
buying_power_effect: f64Buying power effect
margin_requirement: f64Margin requirement
error_message: Option<String>Error message (if any)
warning_message: Option<String>Warning message (if any)
Trait Implementations§
Source§impl Clone for OptionOrderPreviewResponse
impl Clone for OptionOrderPreviewResponse
Source§fn clone(&self) -> OptionOrderPreviewResponse
fn clone(&self) -> OptionOrderPreviewResponse
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 OptionOrderPreviewResponse
impl Debug for OptionOrderPreviewResponse
Source§impl<'de> Deserialize<'de> for OptionOrderPreviewResponse
impl<'de> Deserialize<'de> for OptionOrderPreviewResponse
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
Auto Trait Implementations§
impl Freeze for OptionOrderPreviewResponse
impl RefUnwindSafe for OptionOrderPreviewResponse
impl Send for OptionOrderPreviewResponse
impl Sync for OptionOrderPreviewResponse
impl Unpin for OptionOrderPreviewResponse
impl UnwindSafe for OptionOrderPreviewResponse
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