Skip to main content

CnIpoListItem

Struct CnIpoListItem 

Source
pub struct CnIpoListItem {
Show 20 fields pub apply_date: Option<String>, pub stock_name: Option<String>, pub code: Option<String>, pub stock_id: Option<u64>, pub apply_code: Option<String>, pub ipo_price: Option<String>, pub is_ipo_price_preview: Option<u32>, pub apply_limit: Option<String>, pub is_apply_limit_preview: Option<u32>, pub pe: Option<String>, pub lucky_ratio: Option<String>, pub is_lucky_ratio_preview: Option<u32>, pub lucky_date: Option<String>, pub lucky_ok: Option<u32>, pub ipo_date: Option<String>, pub apply_limit_num: Option<i64>, pub pe_num: Option<i64>, pub apply_date_timestamp: Option<u64>, pub lucky_date_timestamp: Option<u64>, pub ipo_date_timestamp: Option<u64>,
}

Fields§

§apply_date: Option<String>

申购日期

§stock_name: Option<String>

股票名称

§code: Option<String>

股票代码

§stock_id: Option<u64>§apply_code: Option<String>

申购代码

§ipo_price: Option<String>

发行价

§is_ipo_price_preview: Option<u32>

发行价是否预估值(0为否,1为是)

§apply_limit: Option<String>

申购上限

§is_apply_limit_preview: Option<u32>

申购上限是否预估值

§pe: Option<String>

发行市盈率

§lucky_ratio: Option<String>

中签率

§is_lucky_ratio_preview: Option<u32>

中签率是否预估

§lucky_date: Option<String>

公布中签日

§lucky_ok: Option<u32>

中签号是否已经公布

§ipo_date: Option<String>

上市日期

§apply_limit_num: Option<i64>

申购上限,数值格式

§pe_num: Option<i64>

发行市盈率,数值格式,两位精度(即2012表示 20.12)

§apply_date_timestamp: Option<u64>

申购日, 时间戳

§lucky_date_timestamp: Option<u64>

公布中签日, 时间戳

§ipo_date_timestamp: Option<u64>

上市日期, 时间戳

Implementations§

Source§

impl CnIpoListItem

Source

pub fn apply_date(&self) -> &str

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

Source

pub fn stock_name(&self) -> &str

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

Source

pub fn code(&self) -> &str

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

Source

pub fn apply_code(&self) -> &str

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

Source

pub fn ipo_price(&self) -> &str

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

Source

pub fn is_ipo_price_preview(&self) -> u32

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

Source

pub fn apply_limit(&self) -> &str

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

Source

pub fn is_apply_limit_preview(&self) -> u32

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

Source

pub fn pe(&self) -> &str

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

Source

pub fn lucky_ratio(&self) -> &str

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

Source

pub fn is_lucky_ratio_preview(&self) -> u32

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

Source

pub fn lucky_date(&self) -> &str

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

Source

pub fn lucky_ok(&self) -> u32

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

Source

pub fn ipo_date(&self) -> &str

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

Source

pub fn stock_id(&self) -> u64

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

Source

pub fn apply_limit_num(&self) -> i64

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

Source

pub fn pe_num(&self) -> i64

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

Source

pub fn apply_date_timestamp(&self) -> u64

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

Source

pub fn lucky_date_timestamp(&self) -> u64

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

Source

pub fn ipo_date_timestamp(&self) -> u64

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

Trait Implementations§

Source§

impl Clone for CnIpoListItem

Source§

fn clone(&self) -> CnIpoListItem

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 CnIpoListItem

Source§

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

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

impl Default for CnIpoListItem

Source§

fn default() -> Self

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

impl Hash for CnIpoListItem

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Message for CnIpoListItem

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 CnIpoListItem

Source§

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

Source§

impl StructuralPartialEq for CnIpoListItem

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
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

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
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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