pub struct Future {Show 23 fields
pub name: String,
pub code: String,
pub symbol: String,
pub market_name: String,
pub market_type: i32,
pub max_quantity_per_order: i64,
pub tick_size: f64,
pub prev_price: f64,
pub base_price: f64,
pub max_price: f64,
pub min_price: f64,
pub unit: f64,
pub multiple: f64,
pub tradable: bool,
pub future_option_type: i32,
pub last_tradable_date: String,
pub maturity_date: String,
pub underlying_code: String,
pub underlying_prev_price: f64,
pub remaining_days: f64,
pub last_tradable_day: bool,
pub cd_rate: f64,
pub final_settlement_date: String,
}Expand description
선물/옵션 종목 정보
Fields§
§name: String리소스 이름 (futures/{code})
code: String종목 코드
symbol: String심볼
market_name: String종목명
market_type: i32시장 유형
max_quantity_per_order: i641회 최대 주문 수량
tick_size: f64틱 크기
prev_price: f64전일 종가
base_price: f64기준가
max_price: f64상한가
min_price: f64하한가
unit: f64거래 단위
multiple: f64거래 승수
tradable: bool거래 가능 여부
future_option_type: i32선물/옵션 유형
last_tradable_date: String최종 거래일 (YYYY-MM-DD)
maturity_date: String만기일 (YYYY-MM-DD)
underlying_code: String기초자산 코드
underlying_prev_price: f64기초자산 전일 종가
remaining_days: f64잔존일수
last_tradable_day: bool최종 거래일 여부
cd_rate: f64CD 금리
final_settlement_date: String최종 결제일 (YYYY-MM-DD)
Implementations§
Source§impl Future
impl Future
Sourcepub fn market_type(&self) -> MarketType
pub fn market_type(&self) -> MarketType
Returns the enum value of market_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_market_type(&mut self, value: MarketType)
pub fn set_market_type(&mut self, value: MarketType)
Sets market_type to the provided enum value.
Sourcepub fn future_option_type(&self) -> FutureOptionType
pub fn future_option_type(&self) -> FutureOptionType
Returns the enum value of future_option_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_future_option_type(&mut self, value: FutureOptionType)
pub fn set_future_option_type(&mut self, value: FutureOptionType)
Sets future_option_type to the provided enum value.
Trait Implementations§
§impl<'de> Deserialize<'de> for Future
impl<'de> Deserialize<'de> for Future
§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 Message for Future
impl Message for Future
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(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
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(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
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(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.impl StructuralPartialEq for Future
Auto Trait Implementations§
impl Freeze for Future
impl RefUnwindSafe for Future
impl Send for Future
impl Sync for Future
impl Unpin for Future
impl UnsafeUnpin for Future
impl UnwindSafe for Future
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request