pub struct PropertyCumulative {
pub name: Option<i32>,
pub days: Option<u32>,
pub period_average: Option<i32>,
}Fields§
§name: Option<i32>PropertyNameCumulative: 3101=涨跌额, 3102=涨跌幅, …
days: Option<u32>天数 (默认1)
period_average: Option<i32>周期平均
Implementations§
Source§impl PropertyCumulative
impl PropertyCumulative
Sourcepub fn period_average(&self) -> i32
pub fn period_average(&self) -> i32
Returns the value of period_average, or the default value if period_average is unset.
Trait Implementations§
Source§impl Clone for PropertyCumulative
impl Clone for PropertyCumulative
Source§fn clone(&self) -> PropertyCumulative
fn clone(&self) -> PropertyCumulative
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 PropertyCumulative
impl Debug for PropertyCumulative
Source§impl Default for PropertyCumulative
impl Default for PropertyCumulative
Source§impl<'de> Deserialize<'de> for PropertyCumulativewhere
PropertyCumulative: Default,
impl<'de> Deserialize<'de> for PropertyCumulativewhere
PropertyCumulative: 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 Hash for PropertyCumulative
impl Hash for PropertyCumulative
Source§impl Message for PropertyCumulative
impl Message for PropertyCumulative
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 PropertyCumulative
impl PartialEq for PropertyCumulative
Source§impl Serialize for PropertyCumulative
impl Serialize for PropertyCumulative
impl Copy for PropertyCumulative
impl Eq for PropertyCumulative
impl StructuralPartialEq for PropertyCumulative
Auto Trait Implementations§
impl Freeze for PropertyCumulative
impl RefUnwindSafe for PropertyCumulative
impl Send for PropertyCumulative
impl Sync for PropertyCumulative
impl Unpin for PropertyCumulative
impl UnsafeUnpin for PropertyCumulative
impl UnwindSafe for PropertyCumulative
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