pub struct FinancialFilter {
pub field_name: i32,
pub filter_min: Option<f64>,
pub filter_max: Option<f64>,
pub is_no_filter: Option<bool>,
pub sort_dir: Option<i32>,
pub quarter: i32,
}Expand description
财务属性筛选
Fields§
§field_name: i32FinancialField 财务属性
filter_min: Option<f64>区间下限(闭区间),不传代表下限为 -∞
filter_max: Option<f64>区间上限(闭区间),不传代表上限为 +∞
is_no_filter: Option<bool>该字段是否不需要筛选,True:不筛选,False:筛选。不传默认不筛选
sort_dir: Option<i32>SortDir 排序方向,默认不排序。
quarter: i32FinancialQuarter 财报累积时间
Implementations§
Source§impl FinancialFilter
impl FinancialFilter
Sourcepub fn filter_min(&self) -> f64
pub fn filter_min(&self) -> f64
Returns the value of filter_min, or the default value if filter_min is unset.
Sourcepub fn filter_max(&self) -> f64
pub fn filter_max(&self) -> f64
Returns the value of filter_max, or the default value if filter_max is unset.
Sourcepub fn is_no_filter(&self) -> bool
pub fn is_no_filter(&self) -> bool
Returns the value of is_no_filter, or the default value if is_no_filter is unset.
Trait Implementations§
Source§impl Clone for FinancialFilter
impl Clone for FinancialFilter
Source§fn clone(&self) -> FinancialFilter
fn clone(&self) -> FinancialFilter
Returns a duplicate 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 FinancialFilter
impl Debug for FinancialFilter
Source§impl Default for FinancialFilter
impl Default for FinancialFilter
Source§impl<'de> Deserialize<'de> for FinancialFilterwhere
FinancialFilter: Default,
impl<'de> Deserialize<'de> for FinancialFilterwhere
FinancialFilter: 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
Source§impl Message for FinancialFilter
impl Message for FinancialFilter
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 FinancialFilter
impl PartialEq for FinancialFilter
Source§impl Serialize for FinancialFilter
impl Serialize for FinancialFilter
impl Copy for FinancialFilter
impl StructuralPartialEq for FinancialFilter
Auto Trait Implementations§
impl Freeze for FinancialFilter
impl RefUnwindSafe for FinancialFilter
impl Send for FinancialFilter
impl Sync for FinancialFilter
impl Unpin for FinancialFilter
impl UnwindSafe for FinancialFilter
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