pub struct OpenPositionUpdate {Show 13 fields
pub deal_reference: Option<String>,
pub deal_id: Option<String>,
pub direction: Option<Direction>,
pub epic: Option<String>,
pub status: Option<Status>,
pub deal_status: Option<Status>,
pub level: Option<f64>,
pub size: Option<f64>,
pub currency: Option<String>,
pub timestamp: Option<String>,
pub channel: Option<String>,
pub expiry: Option<String>,
pub deal_id_origin: Option<String>,
}Expand description
Structure representing details of an open position update.
Fields§
§deal_reference: Option<String>Unique deal reference for the open position.
deal_id: Option<String>Unique deal identifier for the position.
direction: Option<Direction>Direction of the trade position (buy or sell).
epic: Option<String>Epic identifier for the instrument.
status: Option<Status>Status of the position.
deal_status: Option<Status>Deal status of the position.
level: Option<f64>Price level of the position.
size: Option<f64>Position size.
currency: Option<String>Currency of the position.
timestamp: Option<String>Timestamp of the position update.
channel: Option<String>Channel through which the update was received.
expiry: Option<String>Expiry date of the position, if applicable.
deal_id_origin: Option<String>Original deal identifier for the position.
Trait Implementations§
Source§impl Clone for OpenPositionUpdate
impl Clone for OpenPositionUpdate
Source§fn clone(&self) -> OpenPositionUpdate
fn clone(&self) -> OpenPositionUpdate
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenPositionUpdate
impl Debug for OpenPositionUpdate
Source§impl Default for OpenPositionUpdate
impl Default for OpenPositionUpdate
Source§fn default() -> OpenPositionUpdate
fn default() -> OpenPositionUpdate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OpenPositionUpdate
impl<'de> Deserialize<'de> for OpenPositionUpdate
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 OpenPositionUpdate
impl Display for OpenPositionUpdate
Auto Trait Implementations§
impl Freeze for OpenPositionUpdate
impl RefUnwindSafe for OpenPositionUpdate
impl Send for OpenPositionUpdate
impl Sync for OpenPositionUpdate
impl Unpin for OpenPositionUpdate
impl UnwindSafe for OpenPositionUpdate
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.