pub struct PropertyFinancial {
pub name: Option<i32>,
pub term: Option<i32>,
pub duration: Option<i64>,
pub year: Option<i32>,
pub period_average: Option<i32>,
}Fields§
§name: Option<i32>§term: Option<i32>§duration: Option<i64>可选时间跨度(范围[1, 9], 成长能力因子专用)
year: Option<i32>年份(2020/2019/…)
period_average: Option<i32>周期平均
Implementations§
Source§impl PropertyFinancial
impl PropertyFinancial
Sourcepub fn name(&self) -> PropertyNameFinancial
pub fn name(&self) -> PropertyNameFinancial
Returns the enum value of name, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn set_name(&mut self, value: PropertyNameFinancial)
pub fn set_name(&mut self, value: PropertyNameFinancial)
Sets name to the provided enum value.
Sourcepub fn term(&self) -> Term
pub fn term(&self) -> Term
Returns the enum value of term, or the default if the field is unset or set to an invalid enum value.
Sourcepub fn duration(&self) -> i64
pub fn duration(&self) -> i64
Returns the value of duration, or the default value if duration is unset.
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 PropertyFinancial
impl Clone for PropertyFinancial
Source§fn clone(&self) -> PropertyFinancial
fn clone(&self) -> PropertyFinancial
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 PropertyFinancial
impl Debug for PropertyFinancial
Source§impl Default for PropertyFinancial
impl Default for PropertyFinancial
Source§impl Hash for PropertyFinancial
impl Hash for PropertyFinancial
Source§impl Message for PropertyFinancial
impl Message for PropertyFinancial
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 PropertyFinancial
impl PartialEq for PropertyFinancial
impl Copy for PropertyFinancial
impl Eq for PropertyFinancial
impl StructuralPartialEq for PropertyFinancial
Auto Trait Implementations§
impl Freeze for PropertyFinancial
impl RefUnwindSafe for PropertyFinancial
impl Send for PropertyFinancial
impl Sync for PropertyFinancial
impl Unpin for PropertyFinancial
impl UnsafeUnpin for PropertyFinancial
impl UnwindSafe for PropertyFinancial
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.