pub struct SingleCondition {
pub compare_operator: u32,
pub condition_type: u32,
pub unix_timestamp: Option<u64>,
pub symbol: Option<String>,
pub security_type: Option<u32>,
pub exchange: Option<String>,
pub price: Option<String>,
}Fields§
§compare_operator: u32§condition_type: u32§unix_timestamp: Option<u64>§symbol: Option<String>§security_type: Option<u32>§exchange: Option<String>§price: Option<String>Implementations§
Source§impl SingleCondition
impl SingleCondition
Sourcepub fn unix_timestamp(&self) -> u64
pub fn unix_timestamp(&self) -> u64
Returns the value of unix_timestamp, or the default value if unix_timestamp is unset.
Sourcepub fn symbol(&self) -> &str
pub fn symbol(&self) -> &str
Returns the value of symbol, or the default value if symbol is unset.
Sourcepub fn security_type(&self) -> u32
pub fn security_type(&self) -> u32
Returns the value of security_type, or the default value if security_type is unset.
Trait Implementations§
Source§impl Clone for SingleCondition
impl Clone for SingleCondition
Source§fn clone(&self) -> SingleCondition
fn clone(&self) -> SingleCondition
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 moreSource§impl Debug for SingleCondition
impl Debug for SingleCondition
Source§impl Default for SingleCondition
impl Default for SingleCondition
Source§impl<'de> Deserialize<'de> for SingleConditionwhere
SingleCondition: Default,
impl<'de> Deserialize<'de> for SingleConditionwhere
SingleCondition: Default,
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
impl Eq for SingleCondition
Source§impl Hash for SingleCondition
impl Hash for SingleCondition
Source§impl Message for SingleCondition
impl Message for SingleCondition
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 SingleCondition
impl PartialEq for SingleCondition
Source§fn eq(&self, other: &SingleCondition) -> bool
fn eq(&self, other: &SingleCondition) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SingleCondition
impl Serialize for SingleCondition
impl StructuralPartialEq for SingleCondition
Auto Trait Implementations§
impl Freeze for SingleCondition
impl RefUnwindSafe for SingleCondition
impl Send for SingleCondition
impl Sync for SingleCondition
impl Unpin for SingleCondition
impl UnsafeUnpin for SingleCondition
impl UnwindSafe for SingleCondition
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