Enum abstract_os::middleware::QueryMsg
source · pub enum QueryMsg<BaseMsg, AppMsg = Empty> {
Base(BaseMsg),
App(AppMsg),
}Variants
Base(BaseMsg)
A configuration message to the middleware.
App(AppMsg)
Custom query
Trait Implementations
sourceimpl<'de, BaseMsg, AppMsg> Deserialize<'de> for QueryMsg<BaseMsg, AppMsg>where
BaseMsg: Deserialize<'de>,
AppMsg: Deserialize<'de>,
impl<'de, BaseMsg, AppMsg> Deserialize<'de> for QueryMsg<BaseMsg, AppMsg>where
BaseMsg: Deserialize<'de>,
AppMsg: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<BaseMsg: JsonSchema, AppMsg: JsonSchema> JsonSchema for QueryMsg<BaseMsg, AppMsg>
impl<BaseMsg: JsonSchema, AppMsg: JsonSchema> JsonSchema for QueryMsg<BaseMsg, AppMsg>
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moresourceimpl<BaseMsg: PartialEq, AppMsg: PartialEq> PartialEq<QueryMsg<BaseMsg, AppMsg>> for QueryMsg<BaseMsg, AppMsg>
impl<BaseMsg: PartialEq, AppMsg: PartialEq> PartialEq<QueryMsg<BaseMsg, AppMsg>> for QueryMsg<BaseMsg, AppMsg>
sourceimpl<BaseMsg, AppMsg> Serialize for QueryMsg<BaseMsg, AppMsg>where
BaseMsg: Serialize,
AppMsg: Serialize,
impl<BaseMsg, AppMsg> Serialize for QueryMsg<BaseMsg, AppMsg>where
BaseMsg: Serialize,
AppMsg: Serialize,
impl<BaseMsg, AppMsg> StructuralPartialEq for QueryMsg<BaseMsg, AppMsg>
Auto Trait Implementations
impl<BaseMsg, AppMsg> RefUnwindSafe for QueryMsg<BaseMsg, AppMsg>where
AppMsg: RefUnwindSafe,
BaseMsg: RefUnwindSafe,
impl<BaseMsg, AppMsg> Send for QueryMsg<BaseMsg, AppMsg>where
AppMsg: Send,
BaseMsg: Send,
impl<BaseMsg, AppMsg> Sync for QueryMsg<BaseMsg, AppMsg>where
AppMsg: Sync,
BaseMsg: Sync,
impl<BaseMsg, AppMsg> Unpin for QueryMsg<BaseMsg, AppMsg>where
AppMsg: Unpin,
BaseMsg: Unpin,
impl<BaseMsg, AppMsg> UnwindSafe for QueryMsg<BaseMsg, AppMsg>where
AppMsg: UnwindSafe,
BaseMsg: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more