[][src]Enum druid_io::query::DataSource

pub enum DataSource {
    Table {
        name: String,
    },
    Lookup {
        lookup: String,
    },
    Union {
        data_sources: Vec<String>,
    },
    Inline {
        column_names: Vec<String>,
        rows: Vec<Vec<String>>,
    },
    Query {
        query: Box<Query>,
    },
    Join {
        left: Box<DataSource>,
        right: Box<DataSource>,
        right_prefix: String,
        condition: String,
        join_type: JoinType,
    },
}

Variants

Table

Fields of Table

name: String
Lookup

Fields of Lookup

lookup: String
Union

Fields of Union

data_sources: Vec<String>
Inline

Fields of Inline

column_names: Vec<String>rows: Vec<Vec<String>>
Query

Fields of Query

query: Box<Query>
Join

Fields of Join

left: Box<DataSource>right: Box<DataSource>right_prefix: Stringcondition: Stringjoin_type: JoinType

Implementations

impl DataSource[src]

pub fn table(name: &str) -> DataSource[src]

pub fn lookup(name: &str) -> DataSource[src]

pub fn union(sources: Vec<&str>) -> DataSource[src]

pub fn query(query: Query) -> DataSource[src]

pub fn join(join_type: JoinType) -> JoinBuilder[src]

Trait Implementations

impl Debug for DataSource[src]

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

impl Serialize for DataSource[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.