pub struct CodeChangeInfo {
pub type: i32,
pub security: Security,
pub related_security: Security,
pub public_time: Option<String>,
pub public_timestamp: Option<f64>,
pub effective_time: Option<String>,
pub effective_timestamp: Option<f64>,
pub end_time: Option<String>,
pub end_timestamp: Option<f64>,
}Fields§
§type: i32CodeChangeType,代码变化或者新增临时代码的事件类型
security: Security主代码,在创业板转主板中表示主板
关联代码,在创业板转主板中表示创业板,在剩余事件中表示临时代码
public_time: Option<String>公布时间
public_timestamp: Option<f64>公布时间戳
effective_time: Option<String>生效时间
effective_timestamp: Option<f64>生效时间戳
end_time: Option<String>结束时间,在创业板转主板事件不存在该字段,在剩余事件表示临时代码交易结束时间
end_timestamp: Option<f64>结束时间戳,在创业板转主板事件不存在该字段,在剩余事件表示临时代码交易结束时间
Implementations§
Source§impl CodeChangeInfo
impl CodeChangeInfo
Sourcepub fn public_time(&self) -> &str
pub fn public_time(&self) -> &str
Returns the value of public_time, or the default value if public_time is unset.
Sourcepub fn public_timestamp(&self) -> f64
pub fn public_timestamp(&self) -> f64
Returns the value of public_timestamp, or the default value if public_timestamp is unset.
Sourcepub fn effective_time(&self) -> &str
pub fn effective_time(&self) -> &str
Returns the value of effective_time, or the default value if effective_time is unset.
Sourcepub fn effective_timestamp(&self) -> f64
pub fn effective_timestamp(&self) -> f64
Returns the value of effective_timestamp, or the default value if effective_timestamp is unset.
Sourcepub fn end_time(&self) -> &str
pub fn end_time(&self) -> &str
Returns the value of end_time, or the default value if end_time is unset.
Sourcepub fn end_timestamp(&self) -> f64
pub fn end_timestamp(&self) -> f64
Returns the value of end_timestamp, or the default value if end_timestamp is unset.
Trait Implementations§
Source§impl Clone for CodeChangeInfo
impl Clone for CodeChangeInfo
Source§fn clone(&self) -> CodeChangeInfo
fn clone(&self) -> CodeChangeInfo
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 CodeChangeInfo
impl Debug for CodeChangeInfo
Source§impl Default for CodeChangeInfo
impl Default for CodeChangeInfo
Source§impl<'de> Deserialize<'de> for CodeChangeInfowhere
CodeChangeInfo: Default,
impl<'de> Deserialize<'de> for CodeChangeInfowhere
CodeChangeInfo: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
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 CodeChangeInfo
impl Message for CodeChangeInfo
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 CodeChangeInfo
impl PartialEq for CodeChangeInfo
Source§impl Serialize for CodeChangeInfo
impl Serialize for CodeChangeInfo
impl StructuralPartialEq for CodeChangeInfo
Auto Trait Implementations§
impl Freeze for CodeChangeInfo
impl RefUnwindSafe for CodeChangeInfo
impl Send for CodeChangeInfo
impl Sync for CodeChangeInfo
impl Unpin for CodeChangeInfo
impl UnwindSafe for CodeChangeInfo
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