pub struct AccountRow {
pub gateway: String,
pub broker_id: String,
pub account: String,
pub md_source: bool,
pub form: CtpForm,
pub connected: bool,
}Expand description
账户行(多账号面;规划 §5.B)。
界面是账户清单的唯一事实源(不新增“账户注册表“插件):
网关实例的存在与状态由 svctl.list 回填 connected,身份与凭据留在这一行。
Fields§
§gateway: String派生注册名(ctp_<broker>_<账号>;寻址用,不参与显示别名)。
broker_id: String§account: String§md_source: bool是否行情元账号(全局单源——用户裁定“单数据源“;已装配后锁定,规划 D3)。
form: CtpForm表单留档(编辑页回填用;密码只存内存,本轮不持久化)。
connected: bool在场位(由 svctl.list 快照回填:该注册名在不在 = 实例已装配)。
诚实边界:登录成败 ek-ctp 无状态口可查(规划 §10 开放项),界面不谎称“已连接“。
Implementations§
Trait Implementations§
Source§impl Clone for AccountRow
impl Clone for AccountRow
Source§impl Debug for AccountRow
impl Debug for AccountRow
Source§impl Default for AccountRow
impl Default for AccountRow
Source§impl PartialEq for AccountRow
impl PartialEq for AccountRow
impl StructuralPartialEq for AccountRow
Auto Trait Implementations§
impl Freeze for AccountRow
impl RefUnwindSafe for AccountRow
impl Send for AccountRow
impl Sync for AccountRow
impl Unpin for AccountRow
impl UnsafeUnpin for AccountRow
impl UnwindSafe for AccountRow
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.