[−][src]Struct mifi_rs::mifi::Mifi
此行情协议主要是为沟通多个行情之间的数据然后进行交换切割, 注意T是某一类数据, 比如k线数据, topic: 主题 frq: 周期 market:市场 history: 历史数据,注意是datetime作为key, 数据作为value,逆序 portfolio: 组合信息,比如指数 format: 格式成指定数据源 real: 实时行情 zip:是否压缩发送
Fields
topic: String
frq: f64
market: String
history: BTreeMap<String, T>
portfolio: HashMap<String, T>
format: String
real: T
zip: bool
Implementations
impl<T> Mifi<T> where
T: Handler + Serialize,
[src]
T: Handler + Serialize,
Trait Implementations
impl<T: Clone> Clone for Mifi<T>
[src]
impl<T: Debug> Debug for Mifi<T>
[src]
impl<'de, T> Deserialize<'de> for Mifi<T> where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl<T> Serialize for Mifi<T> where
T: Serialize,
[src]
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for Mifi<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for Mifi<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for Mifi<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for Mifi<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for Mifi<T> where
T: RefUnwindSafe + UnwindSafe,
[src]
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,