Rehab

Struct Rehab 

Source
pub struct Rehab {
Show 25 fields pub time: String, pub company_act_flag: i64, pub fwd_factor_a: f64, pub fwd_factor_b: f64, pub bwd_factor_a: f64, pub bwd_factor_b: f64, pub split_base: Option<i32>, pub split_ert: Option<i32>, pub join_base: Option<i32>, pub join_ert: Option<i32>, pub bonus_base: Option<i32>, pub bonus_ert: Option<i32>, pub transfer_base: Option<i32>, pub transfer_ert: Option<i32>, pub allot_base: Option<i32>, pub allot_ert: Option<i32>, pub allot_price: Option<f64>, pub add_base: Option<i32>, pub add_ert: Option<i32>, pub add_price: Option<f64>, pub dividend: Option<f64>, pub sp_dividend: Option<f64>, pub spin_off_base: Option<f64>, pub spin_off_ert: Option<f64>, pub timestamp: Option<f64>,
}

Fields§

§time: String

时间字符串

§company_act_flag: i64

公司行动(CompanyAct)组合标志位,指定某些字段值是否有效

§fwd_factor_a: f64

前复权因子A

§fwd_factor_b: f64

前复权因子B

§bwd_factor_a: f64

后复权因子A

§bwd_factor_b: f64

后复权因子B

§split_base: Option<i32>

拆股(例如,1拆5,Base为1,Ert为5)

§split_ert: Option<i32>§join_base: Option<i32>

合股(例如,50合1,Base为50,Ert为1)

§join_ert: Option<i32>§bonus_base: Option<i32>

送股(例如,10送3, Base为10,Ert为3)

§bonus_ert: Option<i32>§transfer_base: Option<i32>

转赠股(例如,10转3, Base为10,Ert为3)

§transfer_ert: Option<i32>§allot_base: Option<i32>

配股(例如,10送2, 配股价为6.3元, Base为10, Ert为2, Price为6.3)

§allot_ert: Option<i32>§allot_price: Option<f64>§add_base: Option<i32>

增发股(例如,10送2, 增发股价为6.3元, Base为10, Ert为2, Price为6.3)

§add_ert: Option<i32>§add_price: Option<f64>§dividend: Option<f64>

现金分红(例如,每10股派现0.5元,则该字段值为0.05)

§sp_dividend: Option<f64>

特别股息(例如,每10股派特别股息0.5元,则该字段值为0.05)

§spin_off_base: Option<f64>

分立

§spin_off_ert: Option<f64>
§timestamp: Option<f64>

时间戳

Implementations§

Source§

impl Rehab

Source

pub fn split_base(&self) -> i32

Returns the value of split_base, or the default value if split_base is unset.

Source

pub fn split_ert(&self) -> i32

Returns the value of split_ert, or the default value if split_ert is unset.

Source

pub fn join_base(&self) -> i32

Returns the value of join_base, or the default value if join_base is unset.

Source

pub fn join_ert(&self) -> i32

Returns the value of join_ert, or the default value if join_ert is unset.

Source

pub fn bonus_base(&self) -> i32

Returns the value of bonus_base, or the default value if bonus_base is unset.

Source

pub fn bonus_ert(&self) -> i32

Returns the value of bonus_ert, or the default value if bonus_ert is unset.

Source

pub fn transfer_base(&self) -> i32

Returns the value of transfer_base, or the default value if transfer_base is unset.

Source

pub fn transfer_ert(&self) -> i32

Returns the value of transfer_ert, or the default value if transfer_ert is unset.

Source

pub fn allot_base(&self) -> i32

Returns the value of allot_base, or the default value if allot_base is unset.

Source

pub fn allot_ert(&self) -> i32

Returns the value of allot_ert, or the default value if allot_ert is unset.

Source

pub fn allot_price(&self) -> f64

Returns the value of allot_price, or the default value if allot_price is unset.

Source

pub fn add_base(&self) -> i32

Returns the value of add_base, or the default value if add_base is unset.

Source

pub fn add_ert(&self) -> i32

Returns the value of add_ert, or the default value if add_ert is unset.

Source

pub fn add_price(&self) -> f64

Returns the value of add_price, or the default value if add_price is unset.

Source

pub fn dividend(&self) -> f64

Returns the value of dividend, or the default value if dividend is unset.

Source

pub fn sp_dividend(&self) -> f64

Returns the value of sp_dividend, or the default value if sp_dividend is unset.

Source

pub fn timestamp(&self) -> f64

Returns the value of timestamp, or the default value if timestamp is unset.

Source

pub fn spin_off_base(&self) -> f64

Returns the value of spin_off_base, or the default value if spin_off_base is unset.

Source

pub fn spin_off_ert(&self) -> f64

Returns the value of spin_off_ert, or the default value if spin_off_ert is unset.

Trait Implementations§

Source§

impl Clone for Rehab

Source§

fn clone(&self) -> Rehab

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Rehab

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Rehab

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for Rehab
where Rehab: Default,

Source§

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 Rehab

Source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
Source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
Source§

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,

Encodes the message to a newly allocated buffer.
Source§

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,

Encodes the message with a length-delimiter to a newly allocated buffer.
Source§

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,

Decodes a length-delimited instance of the message from the buffer.
Source§

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 more
Source§

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 Rehab

Source§

fn eq(&self, other: &Rehab) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for Rehab

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for Rehab

Auto Trait Implementations§

§

impl Freeze for Rehab

§

impl RefUnwindSafe for Rehab

§

impl Send for Rehab

§

impl Sync for Rehab

§

impl Unpin for Rehab

§

impl UnwindSafe for Rehab

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,