Type Alias QueryMsg

Source
pub type QueryMsg<AppMsg = Empty> = QueryMsg<BaseQueryMsg, AppMsg>;

Aliased Type§

pub enum QueryMsg<AppMsg = Empty> {
    Base(BaseQueryMsg),
    App(AppMsg),
}

Variants§

§

Base(BaseQueryMsg)

A query to the base.

§

App(AppMsg)

Custom query

Trait Implementations§

Source§

impl<T> From<BaseQueryMsg> for QueryMsg<T>

Source§

fn from(base: BaseQueryMsg) -> Self

Converts to this type from the input type.
Source§

impl<T: ApiQueryMsg> From<T> for QueryMsg<T>

Source§

fn from(app: T) -> Self

Converts to this type from the input type.