pub struct QueryOpenEstimationResponse {Show 19 fields
pub position: i32,
pub effective_leverage: String,
pub trading_asset: String,
pub collateral: Option<Coin>,
pub hourly_interest_rate: String,
pub position_size: Option<Coin>,
pub open_price: String,
pub take_profit_price: String,
pub liquidation_price: String,
pub estimated_pnl: Option<Coin>,
pub available_liquidity: Option<Coin>,
pub slippage: String,
pub borrow_interest_rate: String,
pub funding_rate: String,
pub price_impact: String,
pub custody: Option<Coin>,
pub liabilities: Option<Coin>,
pub limit_price: String,
pub weight_breaking_fee: String,
}
Fields§
§position: i32
§effective_leverage: String
§trading_asset: String
§collateral: Option<Coin>
§hourly_interest_rate: String
§position_size: Option<Coin>
§open_price: String
§take_profit_price: String
§liquidation_price: String
§estimated_pnl: Option<Coin>
§available_liquidity: Option<Coin>
§slippage: String
§borrow_interest_rate: String
§funding_rate: String
§price_impact: String
§custody: Option<Coin>
§liabilities: Option<Coin>
§limit_price: String
§weight_breaking_fee: String
Implementations§
Trait Implementations§
Source§impl Clone for QueryOpenEstimationResponse
impl Clone for QueryOpenEstimationResponse
Source§fn clone(&self) -> QueryOpenEstimationResponse
fn clone(&self) -> QueryOpenEstimationResponse
Returns a copy 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 QueryOpenEstimationResponse
impl Debug for QueryOpenEstimationResponse
Source§impl<'de> Deserialize<'de> for QueryOpenEstimationResponse
impl<'de> Deserialize<'de> for QueryOpenEstimationResponse
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 From<QueryOpenEstimationResponse> for Binary
impl From<QueryOpenEstimationResponse> for Binary
Source§fn from(msg: QueryOpenEstimationResponse) -> Self
fn from(msg: QueryOpenEstimationResponse) -> Self
Converts to this type from the input type.
Source§impl<T> From<QueryOpenEstimationResponse> for CosmosMsg<T>
impl<T> From<QueryOpenEstimationResponse> for CosmosMsg<T>
Source§fn from(msg: QueryOpenEstimationResponse) -> Self
fn from(msg: QueryOpenEstimationResponse) -> Self
Converts to this type from the input type.
Source§impl JsonSchema for QueryOpenEstimationResponse
impl JsonSchema for QueryOpenEstimationResponse
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moreSource§impl Message for QueryOpenEstimationResponse
impl Message for QueryOpenEstimationResponse
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode<B>(buf: B) -> Result<Self, DecodeError>
fn decode<B>(buf: B) -> Result<Self, DecodeError>
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl TryFrom<Binary> for QueryOpenEstimationResponse
impl TryFrom<Binary> for QueryOpenEstimationResponse
impl Eq for QueryOpenEstimationResponse
impl StructuralPartialEq for QueryOpenEstimationResponse
Auto Trait Implementations§
impl Freeze for QueryOpenEstimationResponse
impl RefUnwindSafe for QueryOpenEstimationResponse
impl Send for QueryOpenEstimationResponse
impl Sync for QueryOpenEstimationResponse
impl Unpin for QueryOpenEstimationResponse
impl UnwindSafe for QueryOpenEstimationResponse
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