pub trait DialogueState:
Default
+ DeserializeOwned
+ Serialize {
// Required method
fn dialogue_name() -> &'static str;
// Provided method
fn session_key() -> String { ... }
}
Available on crate feature
dialogue
only.Expand description
Represents a state of dialogue.
Required Methods§
Sourcefn dialogue_name() -> &'static str
fn dialogue_name() -> &'static str
Returns a unique name for the dialogue.
Provided Methods§
Sourcefn session_key() -> String
fn session_key() -> String
Returns a key for the dialogue state in a session.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.