#[non_exhaustive]pub struct MfOrder {Show 19 fields
pub order_id: String,
pub exchange_order_id: Option<String>,
pub tradingsymbol: String,
pub status: String,
pub status_message: Option<String>,
pub folio: Option<String>,
pub fund: String,
pub order_timestamp: NaiveDateTime,
pub exchange_timestamp: Option<NaiveDateTime>,
pub settlement_id: Option<String>,
pub transaction_type: String,
pub variety: String,
pub purchase_type: String,
pub quantity: f64,
pub amount: f64,
pub last_price: f64,
pub average_price: f64,
pub placed_by: String,
pub tag: Option<String>,
}Expand description
Response from the Kite GET /mf/orders and GET /mf/orders/{order_id} endpoints.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.order_id: StringID of the order.
exchange_order_id: Option<String>Exchange-side order ID, if assigned.
tradingsymbol: StringTrading symbol of the scheme (its ISIN).
status: StringOrder status.
status_message: Option<String>Status message for the order, if any.
folio: Option<String>Folio number.
fund: StringName of the mutual fund.
order_timestamp: NaiveDateTimeTime the order was placed.
exchange_timestamp: Option<NaiveDateTime>Exchange timestamp.
settlement_id: Option<String>Settlement ID, if assigned.
transaction_type: StringTransaction type (BUY or SELL).
variety: StringOrder variety.
purchase_type: StringPurchase type of the order.
quantity: f64Number of units.
amount: f64Amount of the order.
last_price: f64Last price (NAV) per unit.
average_price: f64Average price per unit.
placed_by: StringID of the user who placed the order.
tag: Option<String>Optional tag attached to the request.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MfOrder
impl<'de> Deserialize<'de> for MfOrder
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 MfOrder
impl RefUnwindSafe for MfOrder
impl Send for MfOrder
impl Sync for MfOrder
impl Unpin for MfOrder
impl UnsafeUnpin for MfOrder
impl UnwindSafe for MfOrder
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