pub struct MFOrderParams {
pub trading_symbol: String,
pub transaction_type: TransactionType,
pub amount: Option<f64>,
pub quantity: Option<f64>,
pub tag: Option<String>,
}
Expand description
MF order placement parameters
Fields§
§trading_symbol: String
Trading symbol
transaction_type: TransactionType
Transaction type
amount: Option<f64>
Amount (for purchases)
quantity: Option<f64>
Quantity (for redemptions)
tag: Option<String>
Tag
Implementations§
Source§impl MFOrderParams
impl MFOrderParams
Sourcepub fn redemption(trading_symbol: String, quantity: f64) -> Self
pub fn redemption(trading_symbol: String, quantity: f64) -> Self
Create a redemption order
Trait Implementations§
Source§impl Clone for MFOrderParams
impl Clone for MFOrderParams
Source§fn clone(&self) -> MFOrderParams
fn clone(&self) -> MFOrderParams
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 MFOrderParams
impl Debug for MFOrderParams
Source§impl<'de> Deserialize<'de> for MFOrderParams
impl<'de> Deserialize<'de> for MFOrderParams
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 MFOrderParams
impl RefUnwindSafe for MFOrderParams
impl Send for MFOrderParams
impl Sync for MFOrderParams
impl Unpin for MFOrderParams
impl UnwindSafe for MFOrderParams
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