pub struct CreateSessionFromMsg<M: DerivableMsg> {
pub message: M,
pub derivation: Option<ActionDerivation>,
pub session_info: SessionInfo,
}Fields§
§message: M§derivation: Option<ActionDerivation>§session_info: SessionInfoImplementations§
Source§impl<M: DerivableMsg> CreateSessionFromMsg<M>
impl<M: DerivableMsg> CreateSessionFromMsg<M>
pub fn to_session(&self, env: &Env) -> Result<Session, SessionError>
Trait Implementations§
Source§impl<M: DerivableMsg> AsRef<str> for CreateSessionFromMsg<M>
impl<M: DerivableMsg> AsRef<str> for CreateSessionFromMsg<M>
Source§impl<M: Clone + DerivableMsg> Clone for CreateSessionFromMsg<M>
impl<M: Clone + DerivableMsg> Clone for CreateSessionFromMsg<M>
Source§fn clone(&self) -> CreateSessionFromMsg<M>
fn clone(&self) -> CreateSessionFromMsg<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 + DerivableMsg> Debug for CreateSessionFromMsg<M>
impl<M: Debug + DerivableMsg> Debug for CreateSessionFromMsg<M>
Source§impl<'de, M> Deserialize<'de> for CreateSessionFromMsg<M>where
M: Deserialize<'de> + DerivableMsg,
impl<'de, M> Deserialize<'de> for CreateSessionFromMsg<M>where
M: Deserialize<'de> + DerivableMsg,
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<M: DerivableMsg> Display for CreateSessionFromMsg<M>
impl<M: DerivableMsg> Display for CreateSessionFromMsg<M>
Source§impl<M: DerivableMsg> IntoDiscriminant for CreateSessionFromMsg<M>
impl<M: DerivableMsg> IntoDiscriminant for CreateSessionFromMsg<M>
Source§type Discriminant = SessionActionName
type Discriminant = SessionActionName
Enum listing the same variants as this enum but without any data fields
fn discriminant(&self) -> Self::Discriminant
Source§impl<M: DerivableMsg + JsonSchema> JsonSchema for CreateSessionFromMsg<M>
impl<M: DerivableMsg + JsonSchema> JsonSchema for CreateSessionFromMsg<M>
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 + DerivableMsg> PartialEq for CreateSessionFromMsg<M>
impl<M: PartialEq + DerivableMsg> PartialEq for CreateSessionFromMsg<M>
Source§impl<M> Serialize for CreateSessionFromMsg<M>where
M: Serialize + DerivableMsg,
impl<M> Serialize for CreateSessionFromMsg<M>where
M: Serialize + DerivableMsg,
impl<M: DerivableMsg> StructuralPartialEq for CreateSessionFromMsg<M>
Auto Trait Implementations§
impl<M> Freeze for CreateSessionFromMsg<M>where
M: Freeze,
impl<M> RefUnwindSafe for CreateSessionFromMsg<M>where
M: RefUnwindSafe,
impl<M> Send for CreateSessionFromMsg<M>where
M: Send,
impl<M> Sync for CreateSessionFromMsg<M>where
M: Sync,
impl<M> Unpin for CreateSessionFromMsg<M>where
M: Unpin,
impl<M> UnwindSafe for CreateSessionFromMsg<M>where
M: 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