pub struct DialogueOption {
pub text: String,
pub action: DialogueAction,
pub focused: SwitchTransition,
}Fields§
§text: String§action: DialogueAction§focused: SwitchTransitionImplementations§
Trait Implementations§
Source§impl Clone for DialogueOption
impl Clone for DialogueOption
Source§fn clone(&self) -> DialogueOption
fn clone(&self) -> DialogueOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DialogueOption
impl Debug for DialogueOption
Source§impl Default for DialogueOption
impl Default for DialogueOption
Source§fn default() -> DialogueOption
fn default() -> DialogueOption
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DialogueOption
impl<'de> Deserialize<'de> for DialogueOption
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 Prefab for DialogueOption
impl Prefab for DialogueOption
fn from_prefab(data: &Value) -> Result<Self, PrefabError>
fn from_prefab_with_extras( data: &Value, _named_entities: &HashMap<String, Entity>, _state_token: ID<PhantomData<dyn State + Send + Sync>>, ) -> Result<Self, PrefabError>
fn to_prefab(&self) -> Result<Value, PrefabError>
fn from_prefab_str(data: &str) -> Result<Self, PrefabError>
fn to_prefab_string(&self) -> Result<String, PrefabError>
fn post_from_prefab(&mut self)
Auto Trait Implementations§
impl Freeze for DialogueOption
impl RefUnwindSafe for DialogueOption
impl Send for DialogueOption
impl Sync for DialogueOption
impl Unpin for DialogueOption
impl UnsafeUnpin for DialogueOption
impl UnwindSafe for DialogueOption
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