pub enum SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,{
AllQueries {
method: Option<AllQueryDerivation>,
},
AllActions {
method: Option<AllQueryDerivation>,
},
Derive {
message: M::ActionMsg,
method: Option<ActionDerivation>,
},
}Variants§
AllQueries
Fields
§
method: Option<AllQueryDerivation>AllActions
Fields
§
method: Option<AllQueryDerivation>Derive
Trait Implementations§
Source§impl<M> Clone for SessionQueryMsg<M>where
M: QueryUsesActions + Clone,
M::ActionMsg: IntoDiscriminant + Clone,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> Clone for SessionQueryMsg<M>where
M: QueryUsesActions + Clone,
M::ActionMsg: IntoDiscriminant + Clone,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§fn clone(&self) -> SessionQueryMsg<M>
fn clone(&self) -> SessionQueryMsg<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M> Debug for SessionQueryMsg<M>where
M: QueryUsesActions + Debug,
M::ActionMsg: IntoDiscriminant + Debug,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> Debug for SessionQueryMsg<M>where
M: QueryUsesActions + Debug,
M::ActionMsg: IntoDiscriminant + Debug,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§impl<'de, M> Deserialize<'de> for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant + Deserialize<'de>,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<'de, M> Deserialize<'de> for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant + Deserialize<'de>,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§fn 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
Source§impl<'_enum, M> From<&'_enum SessionQueryMsg<M>> for SessionQueryNamewhere
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<'_enum, M> From<&'_enum SessionQueryMsg<M>> for SessionQueryNamewhere
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§fn from(val: &'_enum SessionQueryMsg<M>) -> SessionQueryName
fn from(val: &'_enum SessionQueryMsg<M>) -> SessionQueryName
Converts to this type from the input type.
Source§impl<M> From<SessionQueryMsg<M>> for SessionQueryNamewhere
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> From<SessionQueryMsg<M>> for SessionQueryNamewhere
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§fn from(val: SessionQueryMsg<M>) -> SessionQueryName
fn from(val: SessionQueryMsg<M>) -> SessionQueryName
Converts to this type from the input type.
Source§impl<M> IntoDiscriminant for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> IntoDiscriminant for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§type Discriminant = SessionQueryName
type Discriminant = SessionQueryName
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl<M> JsonSchema for SessionQueryMsg<M>where
M: QueryUsesActions + JsonSchema,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> JsonSchema for SessionQueryMsg<M>where
M: QueryUsesActions + JsonSchema,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn 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 moreSource§impl<M> PartialEq for SessionQueryMsg<M>where
M: QueryUsesActions + PartialEq,
M::ActionMsg: IntoDiscriminant + PartialEq,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> PartialEq for SessionQueryMsg<M>where
M: QueryUsesActions + PartialEq,
M::ActionMsg: IntoDiscriminant + PartialEq,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Source§impl<M> QueryResponses for SessionQueryMsg<M>where
M: QueryUsesActions + JsonSchema,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> QueryResponses for SessionQueryMsg<M>where
M: QueryUsesActions + JsonSchema,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
fn response_schemas_impl() -> BTreeMap<String, RootSchema>
fn response_schemas() -> Result<BTreeMap<String, RootSchema>, IntegrityError>
Source§impl<M> Serialize for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant + Serialize,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> Serialize for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant + Serialize,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
impl<M> StructuralPartialEq for SessionQueryMsg<M>where
M: QueryUsesActions,
M::ActionMsg: IntoDiscriminant,
<M::ActionMsg as IntoDiscriminant>::Discriminant: VariantArray + 'static,
Auto Trait Implementations§
impl<M> Freeze for SessionQueryMsg<M>where
<<M as QueryUsesActions>::ActionMsg as IntoDiscriminant>::Discriminant: Sized,
<M as IntoDiscriminant>::Discriminant: Sized,
<M as QueryUsesActions>::ActionMsg: Freeze,
impl<M> RefUnwindSafe for SessionQueryMsg<M>where
<<M as QueryUsesActions>::ActionMsg as IntoDiscriminant>::Discriminant: Sized,
<M as IntoDiscriminant>::Discriminant: Sized,
<M as QueryUsesActions>::ActionMsg: RefUnwindSafe,
impl<M> Send for SessionQueryMsg<M>where
<<M as QueryUsesActions>::ActionMsg as IntoDiscriminant>::Discriminant: Sized,
<M as IntoDiscriminant>::Discriminant: Sized,
<M as QueryUsesActions>::ActionMsg: Send,
impl<M> Sync for SessionQueryMsg<M>where
<<M as QueryUsesActions>::ActionMsg as IntoDiscriminant>::Discriminant: Sized,
<M as IntoDiscriminant>::Discriminant: Sized,
<M as QueryUsesActions>::ActionMsg: Sync,
impl<M> Unpin for SessionQueryMsg<M>where
<<M as QueryUsesActions>::ActionMsg as IntoDiscriminant>::Discriminant: Sized,
<M as IntoDiscriminant>::Discriminant: Sized,
<M as QueryUsesActions>::ActionMsg: Unpin,
impl<M> UnwindSafe for SessionQueryMsg<M>where
<<M as QueryUsesActions>::ActionMsg as IntoDiscriminant>::Discriminant: Sized,
<M as IntoDiscriminant>::Discriminant: Sized,
<M as QueryUsesActions>::ActionMsg: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more