Struct rustdx::tcp::SecurityListData
source · pub struct SecurityListData {
pub code: String,
pub name: String,
}
Expand description
Fields§
§code: String
§name: String
\u0000
字符表示空格
Implementations§
source§impl SecurityListData
impl SecurityListData
sourcepub fn parse(bytes: &[u8]) -> Self
pub fn parse(bytes: &[u8]) -> Self
解析 SecurityList
的响应字节。传入长度为 29 字节序列。
(
code, # UTF-8 编码
volunit, # 100
name_bytes, # GBK 编码
reversed_bytes1,
decimal_point, # 2
pre_close_raw, # 少许结果与实际数据有出入,故不解析
reversed_bytes2,
) = struct.unpack("<6sH8s4sBI4s", bytes) # python 表示方式
Trait Implementations§
source§impl Clone for SecurityListData
impl Clone for SecurityListData
source§fn clone(&self) -> SecurityListData
fn clone(&self) -> SecurityListData
Returns a copy 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 SecurityListData
impl Debug for SecurityListData
Auto Trait Implementations§
impl Freeze for SecurityListData
impl RefUnwindSafe for SecurityListData
impl Send for SecurityListData
impl Sync for SecurityListData
impl Unpin for SecurityListData
impl UnwindSafe for SecurityListData
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)