pub struct EstimateData {
pub estimate_type: Option<i32>,
pub actual_value: Option<f64>,
pub predict_value: Option<f64>,
pub currency: Option<String>,
pub period_type: Option<i32>,
}Expand description
财报预测数据
Fields§
§estimate_type: Option<i32>EarningsCalendarEstimateType
actual_value: Option<f64>实际值(已发布时有值)
predict_value: Option<f64>预测值
currency: Option<String>货币单位(ISO 4217)
period_type: Option<i32>EarningsCalendarPeriodType
Implementations§
Source§impl EstimateData
impl EstimateData
Sourcepub fn estimate_type(&self) -> i32
pub fn estimate_type(&self) -> i32
Returns the value of estimate_type, or the default value if estimate_type is unset.
Sourcepub fn actual_value(&self) -> f64
pub fn actual_value(&self) -> f64
Returns the value of actual_value, or the default value if actual_value is unset.
Sourcepub fn predict_value(&self) -> f64
pub fn predict_value(&self) -> f64
Returns the value of predict_value, or the default value if predict_value is unset.
Sourcepub fn currency(&self) -> &str
pub fn currency(&self) -> &str
Returns the value of currency, or the default value if currency is unset.
Sourcepub fn period_type(&self) -> i32
pub fn period_type(&self) -> i32
Returns the value of period_type, or the default value if period_type is unset.
Trait Implementations§
Source§impl Clone for EstimateData
impl Clone for EstimateData
Source§fn clone(&self) -> EstimateData
fn clone(&self) -> EstimateData
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 EstimateData
impl Debug for EstimateData
Source§impl Default for EstimateData
impl Default for EstimateData
Source§impl<'de> Deserialize<'de> for EstimateDatawhere
EstimateData: Default,
impl<'de> Deserialize<'de> for EstimateDatawhere
EstimateData: 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 EstimateData
impl Message for EstimateData
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 EstimateData
impl PartialEq for EstimateData
Source§impl Serialize for EstimateData
impl Serialize for EstimateData
impl StructuralPartialEq for EstimateData
Auto Trait Implementations§
impl Freeze for EstimateData
impl RefUnwindSafe for EstimateData
impl Send for EstimateData
impl Sync for EstimateData
impl Unpin for EstimateData
impl UnsafeUnpin for EstimateData
impl UnwindSafe for EstimateData
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