Struct bybit::model::PositionData

source ·
pub struct PositionData {
Show 32 fields pub position_idx: u8, pub trade_mode: u8, pub risk_id: u8, pub risk_limit_value: String, pub symbol: String, pub side: String, pub size: String, pub entry_price: String, pub leverage: String, pub position_value: String, pub position_balance: String, pub mark_price: String, pub position_im: String, pub position_mm: String, pub take_profit: String, pub stop_loss: String, pub trailing_stop: String, pub unrealised_pnl: String, pub cum_realised_pnl: String, pub created_time: String, pub updated_time: String, pub tpsl_mode: String, pub liq_price: String, pub bust_price: String, pub category: String, pub position_status: String, pub adl_rank_indicator: u8, pub auto_add_margin: u8, pub leverage_sys_updated_time: String, pub mmr_sys_updated_time: String, pub seq: u64, pub is_reduce_only: bool,
}

Fields§

§position_idx: u8§trade_mode: u8§risk_id: u8§risk_limit_value: String§symbol: String§side: String§size: String§entry_price: String§leverage: String§position_value: String§position_balance: String§mark_price: String§position_im: String§position_mm: String§take_profit: String§stop_loss: String§trailing_stop: String§unrealised_pnl: String§cum_realised_pnl: String§created_time: String§updated_time: String§tpsl_mode: String§liq_price: String§bust_price: String§category: String§position_status: String§adl_rank_indicator: u8§auto_add_margin: u8§leverage_sys_updated_time: String§mmr_sys_updated_time: String§seq: u64§is_reduce_only: bool

Trait Implementations§

source§

impl Clone for PositionData

source§

fn clone(&self) -> PositionData

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for PositionData

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for PositionData

source§

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 Serialize for PositionData

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Send for PositionData

source§

impl Sync for PositionData

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,