[][src]Struct jqdata::RunQuery

pub struct RunQuery {
    pub table: String,
    pub columns: String,
    pub conditions: Option<String>,
    pub count: Option<u32>,
}

模拟JQDataSDK的run_query方法 run_query api 是模拟了JQDataSDK run_query方法获取财务、宏观、期权等数据 可查询的数据内容请查看JQData文档 以查询上市公司分红送股(除权除息)数据为例: 参数: table: 要查询的数据库和表名,格式为 database + . + tablename 如finance.STK_XR_XD columns: 所查字段,为空时则查询所有字段,多个字段中间用,分隔。如id,company_id,columns不能有空格等特殊字符 conditions: 查询条件,可以为空,格式为report_date#>=#2006-12-01&report_date#<=#2006-12-31,条件内部#号分隔,格式: column # 判断符 # value,多个条件使用&号分隔,表示and,conditions不能有空格等特殊字符 count: 查询条数,count为空时默认1条,最多查询1000条

Fields

table: Stringcolumns: Stringconditions: Option<String>count: Option<u32>

Trait Implementations

impl BodyConsumer<Vec<String>> for RunQuery[src]

impl Debug for RunQuery[src]

impl<'de> Deserialize<'de> for RunQuery[src]

impl HasMethod for RunQuery[src]

impl LineBodyConsumer for RunQuery[src]

impl Serialize for RunQuery[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,