pub struct PositionLifecycleState {
pub position_id: String,
pub source_tag: String,
pub instrument: String,
pub opened_at_ms: u64,
pub entry_price: f64,
pub qty: f64,
pub mfe_usdt: f64,
pub mae_usdt: f64,
pub expected_holding_ms: u64,
pub stop_loss_order_id: Option<String>,
}Fields§
§position_id: String§source_tag: String§instrument: String§opened_at_ms: u64§entry_price: f64§qty: f64§mfe_usdt: f64§mae_usdt: f64§expected_holding_ms: u64§stop_loss_order_id: Option<String>Trait Implementations§
Source§impl Clone for PositionLifecycleState
impl Clone for PositionLifecycleState
Source§fn clone(&self) -> PositionLifecycleState
fn clone(&self) -> PositionLifecycleState
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 moreAuto Trait Implementations§
impl Freeze for PositionLifecycleState
impl RefUnwindSafe for PositionLifecycleState
impl Send for PositionLifecycleState
impl Sync for PositionLifecycleState
impl Unpin for PositionLifecycleState
impl UnsafeUnpin for PositionLifecycleState
impl UnwindSafe for PositionLifecycleState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more