#[repr(C)]pub struct ReqUserLoginField {
pub trading_day: [u8; 9],
pub broker_id: BrokerIdType,
pub user_id: UserIdType,
pub password: PasswordType,
pub user_product_info: ProductInfoType,
pub interface_product_info: ProductInfoType,
pub protocol_info: ProtocolInfoType,
pub mac_address: MacAddressType,
pub one_time_password: PasswordType,
pub client_ip_address: IpAddressType,
pub client_ip_port: IpPortType,
pub login_remark: [u8; 36],
}Expand description
用户登录请求
Fields§
§trading_day: [u8; 9]交易日
broker_id: BrokerIdType经纪公司代码
user_id: UserIdType用户代码
password: PasswordType密码
user_product_info: ProductInfoType用户端产品信息
interface_product_info: ProductInfoType接口端产品信息
protocol_info: ProtocolInfoType协议信息
mac_address: MacAddressTypeMac地址
one_time_password: PasswordType动态密码
client_ip_address: IpAddressType客户端IP地址
client_ip_port: IpPortType客户端IP端口
login_remark: [u8; 36]登录备注
Implementations§
Source§impl ReqUserLoginField
impl ReqUserLoginField
Sourcepub fn with_product_info(self, product_info: &str) -> CtpResult<Self>
pub fn with_product_info(self, product_info: &str) -> CtpResult<Self>
设置产品信息
Sourcepub fn with_auth_code(self, auth_code: &str) -> CtpResult<Self>
pub fn with_auth_code(self, auth_code: &str) -> CtpResult<Self>
设置认证码
Sourcepub fn with_mac_address(self, mac_address: &str) -> CtpResult<Self>
pub fn with_mac_address(self, mac_address: &str) -> CtpResult<Self>
设置Mac地址
Sourcepub fn with_client_ip(self, ip: &str, port: &str) -> CtpResult<Self>
pub fn with_client_ip(self, ip: &str, port: &str) -> CtpResult<Self>
设置客户端IP
Trait Implementations§
Source§impl Clone for ReqUserLoginField
impl Clone for ReqUserLoginField
Source§fn clone(&self) -> ReqUserLoginField
fn clone(&self) -> ReqUserLoginField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ReqUserLoginField
impl Debug for ReqUserLoginField
Auto Trait Implementations§
impl Freeze for ReqUserLoginField
impl RefUnwindSafe for ReqUserLoginField
impl Send for ReqUserLoginField
impl Sync for ReqUserLoginField
impl Unpin for ReqUserLoginField
impl UnsafeUnpin for ReqUserLoginField
impl UnwindSafe for ReqUserLoginField
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