[][src]Struct intfic::story_block::Choice

pub struct Choice {
    pub text: String,
    pub typed: String,
    pub result: String,
}

A choice has some text that the player will see, a list of words to match input against, and a result.

The result can be the name of a story block in the same file, or the filename of a story file. If pointing to a new story file, the game will start at the first block in that file.

Fields

text: String

The string that will be typed out and presented to the player for this option.

typed: String

If the user types a substring of this string, the option will be selected.

result: String

Corresponds to the name of a story block or story file

Trait Implementations

impl Clone for Choice[src]

impl Debug for Choice[src]

impl Default for Choice[src]

impl PartialEq<Choice> for Choice[src]

impl StructuralPartialEq for Choice[src]

Auto Trait Implementations

impl RefUnwindSafe for Choice

impl Send for Choice

impl Sync for Choice

impl Unpin for Choice

impl UnwindSafe for Choice

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,