pub struct SimultaneousCompare {
pub condition: Option<PairCondition>,
pub order_type: i32,
pub cooldown_ms: u64,
pub apply_tick_offset: bool,
}Expand description
SimultaneousCompare 모드 설정
Fields§
§condition: Option<PairCondition>가격 비교 조건
order_type: i32주문 유형
cooldown_ms: u64트리거 후 재트리거까지 대기시간 (ms)
apply_tick_offset: boolhit 직후 지정가 조정 여부
Implementations§
Source§impl SimultaneousCompare
impl SimultaneousCompare
Sourcepub fn order_type(&self) -> PairOrderType
pub fn order_type(&self) -> PairOrderType
Returns the enum value of order_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_order_type(&mut self, value: PairOrderType)
pub fn set_order_type(&mut self, value: PairOrderType)
Sets order_type to the provided enum value.
Trait Implementations§
Source§impl Clone for SimultaneousCompare
impl Clone for SimultaneousCompare
Source§fn clone(&self) -> SimultaneousCompare
fn clone(&self) -> SimultaneousCompare
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SimultaneousCompare
Source§impl Debug for SimultaneousCompare
impl Debug for SimultaneousCompare
Source§impl Default for SimultaneousCompare
impl Default for SimultaneousCompare
§impl<'de> Deserialize<'de> for SimultaneousCompare
impl<'de> Deserialize<'de> for SimultaneousCompare
§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 SimultaneousCompare
impl Message for SimultaneousCompare
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.Source§impl PartialEq for SimultaneousCompare
impl PartialEq for SimultaneousCompare
Source§fn eq(&self, other: &SimultaneousCompare) -> bool
fn eq(&self, other: &SimultaneousCompare) -> bool
Tests for
self and other values to be equal, and is used by ==.§impl Serialize for SimultaneousCompare
impl Serialize for SimultaneousCompare
impl StructuralPartialEq for SimultaneousCompare
Auto Trait Implementations§
impl Freeze for SimultaneousCompare
impl RefUnwindSafe for SimultaneousCompare
impl Send for SimultaneousCompare
impl Sync for SimultaneousCompare
impl Unpin for SimultaneousCompare
impl UnsafeUnpin for SimultaneousCompare
impl UnwindSafe for SimultaneousCompare
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