Enum usiagent::command::UsiOptType[][src]

pub enum UsiOptType {
    Check(Option<bool>),
    Spin(i64i64Option<i64>),
    Combo(Option<String>, Vec<String>),
    Button,
    String(Option<String>),
    FileName(Option<String>),
}
Expand description

optionコマンドの値

Variants

Check(Option<bool>)

check

デフォルト値としてtrueかfalseを指定可能

Tuple Fields of Check

0: Option<bool>
Spin(i64i64Option<i64>)

spin

min,max,デフォルト値(オプション)を指定

Tuple Fields of Spin

0: i641: i642: Option<i64>
Combo(Option<String>, Vec<String>)

combo

デフォルト値、項目のVecを指定。項目は一つ以上なければならない。

Tuple Fields of Combo

0: Option<String>1: Vec<String>
Button

button

String(Option<String>)

string

デフォルト値を指定可能

Tuple Fields of String

0: Option<String>
FileName(Option<String>)

filename

デフォルト値を指定可能

Tuple Fields of FileName

0: Option<String>

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

状態が正しければtrueを、そうでなければfalseを返す

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.