Skip to main content

ExrightFactorItem

Struct ExrightFactorItem 

Source
pub struct ExrightFactorItem {
Show 32 fields pub ex_time: Option<u32>, pub fwd_a: Option<f64>, pub fwd_b: Option<f64>, pub bwd_a: Option<f64>, pub bwd_b: Option<f64>, pub sc_str: Option<String>, pub tc_str: Option<String>, pub en_str: Option<String>, pub split_base: Option<u32>, pub split_ert: Option<u32>, pub join_base: Option<u32>, pub join_ert: Option<u32>, pub bonus_base: Option<u32>, pub bonus_ert: Option<u32>, pub transfer_base: Option<u32>, pub transfer_ert: Option<u32>, pub allot_base: Option<u32>, pub allot_ert: Option<u32>, pub allot_price: Option<u64>, pub add_base: Option<u32>, pub add_ert: Option<u32>, pub add_price: Option<u64>, pub dividend_base: Option<u32>, pub dividend_amount: Option<u64>, pub sp_dividend_base: Option<u32>, pub sp_dividend_amount: Option<u64>, pub spin_off_base: Option<u32>, pub spin_off_ert: Option<u32>, pub origin_fwd_a: Option<f64>, pub origin_fwd_b: Option<f64>, pub origin_bwd_a: Option<f64>, pub origin_bwd_b: Option<f64>,
}

Fields§

§ex_time: Option<u32>§fwd_a: Option<f64>

前复权因子a(累积)

§fwd_b: Option<f64>

前复权因子b(累积)

§bwd_a: Option<f64>

后复权因子a(累积)

§bwd_b: Option<f64>

后复权因子b(累积)

§sc_str: Option<String>

简体中文描述

§tc_str: Option<String>

繁体中文描述

§en_str: Option<String>

英文描述

§split_base: Option<u32>

拆股(eg. 1拆5, Base为1, Ert为5)

§split_ert: Option<u32>§join_base: Option<u32>

合股(eg. 50合1, Base为50, Ert为1)

§join_ert: Option<u32>§bonus_base: Option<u32>

送股(eg. 10送3, Base为10, Ert为3)

§bonus_ert: Option<u32>§transfer_base: Option<u32>

转赠股(eg. 10转3, Base为10, Ert为3)

§transfer_ert: Option<u32>§allot_base: Option<u32>

配股(eg. 10送2, 配股价为6.3元,Base为10, Ert为2,Price为6300,放大100000倍)

§allot_ert: Option<u32>§allot_price: Option<u64>§add_base: Option<u32>

增发股(eg. 10送2, 增发股价为6.3元,Base为10, Ert为2,Price为6300,放大100000倍)

§add_ert: Option<u32>§add_price: Option<u64>§dividend_base: Option<u32>

现金分红(eg. 每10股派现0.5元,Base为10,Amount为500,放大100000倍)

§dividend_amount: Option<u64>§sp_dividend_base: Option<u32>

特别股息(eg. 每10股特别股息0.5元,Base为10,Amount为500,放大100000倍)

§sp_dividend_amount: Option<u64>§spin_off_base: Option<u32>

公司分立(eg. 公司一分为二,Base为1, Ert为2)

§spin_off_ert: Option<u32>§origin_fwd_a: Option<f64>

前复权因子a, 原始

§origin_fwd_b: Option<f64>

前复权因子b, 原始

§origin_bwd_a: Option<f64>

后复权因子a, 原始

§origin_bwd_b: Option<f64>

后复权因子b, 原始

Implementations§

Source§

impl ExrightFactorItem

Source

pub fn ex_time(&self) -> u32

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

Source

pub fn fwd_a(&self) -> f64

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

Source

pub fn fwd_b(&self) -> f64

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

Source

pub fn bwd_a(&self) -> f64

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

Source

pub fn bwd_b(&self) -> f64

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

Source

pub fn sc_str(&self) -> &str

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

Source

pub fn tc_str(&self) -> &str

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

Source

pub fn en_str(&self) -> &str

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

Source

pub fn split_base(&self) -> u32

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

Source

pub fn split_ert(&self) -> u32

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

Source

pub fn join_base(&self) -> u32

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

Source

pub fn join_ert(&self) -> u32

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

Source

pub fn bonus_base(&self) -> u32

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

Source

pub fn bonus_ert(&self) -> u32

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

Source

pub fn transfer_base(&self) -> u32

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

Source

pub fn transfer_ert(&self) -> u32

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

Source

pub fn allot_base(&self) -> u32

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

Source

pub fn allot_ert(&self) -> u32

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

Source

pub fn allot_price(&self) -> u64

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

Source

pub fn add_base(&self) -> u32

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

Source

pub fn add_ert(&self) -> u32

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

Source

pub fn add_price(&self) -> u64

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

Source

pub fn dividend_base(&self) -> u32

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

Source

pub fn dividend_amount(&self) -> u64

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

Source

pub fn sp_dividend_base(&self) -> u32

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

Source

pub fn sp_dividend_amount(&self) -> u64

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

Source

pub fn origin_fwd_a(&self) -> f64

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

Source

pub fn origin_fwd_b(&self) -> f64

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

Source

pub fn origin_bwd_a(&self) -> f64

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

Source

pub fn origin_bwd_b(&self) -> f64

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

Source

pub fn spin_off_base(&self) -> u32

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

Source

pub fn spin_off_ert(&self) -> u32

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

Trait Implementations§

Source§

impl Clone for ExrightFactorItem

Source§

fn clone(&self) -> ExrightFactorItem

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 ExrightFactorItem

Source§

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

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

impl Default for ExrightFactorItem

Source§

fn default() -> Self

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

impl Message for ExrightFactorItem

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 ExrightFactorItem

Source§

fn eq(&self, other: &ExrightFactorItem) -> 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 StructuralPartialEq for ExrightFactorItem

Auto Trait Implementations§

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.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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.

§

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

§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] only if self and other return Action::Follow. Read more
§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns [Action::Follow] if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more