pub enum WsPushScope {
Quote,
Notify,
Trade,
}Expand description
WS 推送事件需要的最低 scope(client 没这个 scope 就收不到)
Quote→qot:read:行情类Notify→qot:read:通用通知(如订阅状态、网关心跳)Trade→acc:read:交易回报涉及账户隐私,必须有账户读权限
Variants§
Implementations§
Source§impl WsPushScope
impl WsPushScope
Sourcepub fn required_scope(&self) -> Scope
pub fn required_scope(&self) -> Scope
该事件类型需要的 Scope;client 必须持有这个 scope 才能收到
Trait Implementations§
Source§impl Clone for WsPushScope
impl Clone for WsPushScope
Source§fn clone(&self) -> WsPushScope
fn clone(&self) -> WsPushScope
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 WsPushScope
impl Debug for WsPushScope
Source§impl Default for WsPushScope
impl Default for WsPushScope
Source§fn default() -> WsPushScope
fn default() -> WsPushScope
Returns the “default value” for a type. Read more
Source§impl PartialEq for WsPushScope
impl PartialEq for WsPushScope
impl Copy for WsPushScope
impl Eq for WsPushScope
impl StructuralPartialEq for WsPushScope
Auto Trait Implementations§
impl Freeze for WsPushScope
impl RefUnwindSafe for WsPushScope
impl Send for WsPushScope
impl Sync for WsPushScope
impl Unpin for WsPushScope
impl UnwindSafe for WsPushScope
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more