Skip to main content

StockEvent

Struct StockEvent 

Source
pub struct StockEvent {
Show 27 fields pub trade_market: Option<u32>, pub security_type: Option<u32>, pub event_id: Option<String>, pub version: Option<u32>, pub event_category: Option<String>, pub event_type: Option<String>, pub action_type: Option<String>, pub cancel_flag: Option<bool>, pub effect_date: Option<u32>, pub record_date: Option<u32>, pub payment_date: Option<u32>, pub security: Option<SecurityIdentity>, pub business_date: Option<u64>, pub due_bill_date: Option<u32>, pub complete_flag: Option<bool>, pub change_type_list: Vec<String>, pub offer_type: Option<String>, pub interim_final_indicator: Option<String>, pub transferable_flag: Option<String>, pub intermediate_security_type: Option<String>, pub lottery_date: Option<u32>, pub result_date: Option<u32>, pub min_integral_amount: Option<String>, pub called_amount: Option<String>, pub lottery_type: Option<String>, pub meeting_date: Option<u32>, pub update_time: Option<u64>,
}

Fields§

§trade_market: Option<u32>§security_type: Option<u32>§event_id: Option<String>§version: Option<u32>§event_category: Option<String>§event_type: Option<String>§action_type: Option<String>§cancel_flag: Option<bool>§effect_date: Option<u32>§record_date: Option<u32>§payment_date: Option<u32>§security: Option<SecurityIdentity>§business_date: Option<u64>§due_bill_date: Option<u32>§complete_flag: Option<bool>§change_type_list: Vec<String>§offer_type: Option<String>§interim_final_indicator: Option<String>§transferable_flag: Option<String>§intermediate_security_type: Option<String>§lottery_date: Option<u32>§result_date: Option<u32>§min_integral_amount: Option<String>§called_amount: Option<String>§lottery_type: Option<String>§meeting_date: Option<u32>§update_time: Option<u64>

Implementations§

Source§

impl StockEvent

Source

pub fn trade_market(&self) -> u32

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

Source

pub fn security_type(&self) -> u32

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

Source

pub fn event_id(&self) -> &str

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

Source

pub fn version(&self) -> u32

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

Source

pub fn event_category(&self) -> &str

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

Source

pub fn event_type(&self) -> &str

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

Source

pub fn action_type(&self) -> &str

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

Source

pub fn cancel_flag(&self) -> bool

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

Source

pub fn effect_date(&self) -> u32

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

Source

pub fn record_date(&self) -> u32

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

Source

pub fn payment_date(&self) -> u32

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

Source

pub fn business_date(&self) -> u64

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

Source

pub fn due_bill_date(&self) -> u32

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

Source

pub fn complete_flag(&self) -> bool

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

Source

pub fn offer_type(&self) -> &str

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

Source

pub fn interim_final_indicator(&self) -> &str

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

Source

pub fn transferable_flag(&self) -> &str

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

Source

pub fn intermediate_security_type(&self) -> &str

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

Source

pub fn lottery_date(&self) -> u32

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

Source

pub fn result_date(&self) -> u32

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

Source

pub fn min_integral_amount(&self) -> &str

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

Source

pub fn called_amount(&self) -> &str

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

Source

pub fn lottery_type(&self) -> &str

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

Source

pub fn meeting_date(&self) -> u32

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

Source

pub fn update_time(&self) -> u64

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

Trait Implementations§

Source§

impl Clone for StockEvent

Source§

fn clone(&self) -> StockEvent

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for StockEvent

Source§

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

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

impl Default for StockEvent

Source§

fn default() -> Self

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

impl<'de> Deserialize<'de> for StockEvent

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 Eq for StockEvent

Source§

impl Hash for StockEvent

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 StockEvent

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 StockEvent

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 StockEvent

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 StockEvent

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

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.