Enum usiagent::command::UsiOptType
source · pub enum UsiOptType {
Check(Option<bool>),
Spin(i64, i64, Option<i64>),
Combo(Option<String>, Vec<String>),
Button,
String(Option<String>),
FileName(Option<String>),
}Expand description
optionコマンドの値
Variants§
Check(Option<bool>)
check
デフォルト値としてtrueかfalseを指定可能
Spin(i64, i64, Option<i64>)
spin
min,max,デフォルト値(オプション)を指定
Combo(Option<String>, Vec<String>)
combo
デフォルト値、項目のVecを指定。項目は一つ以上なければならない。
Button
button
String(Option<String>)
string
デフォルト値を指定可能
FileName(Option<String>)
filename
デフォルト値を指定可能
Trait Implementations§
source§impl Clone for UsiOptType
impl Clone for UsiOptType
source§fn clone(&self) -> UsiOptType
fn clone(&self) -> UsiOptType
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 Debug for UsiOptType
impl Debug for UsiOptType
source§impl PartialEq<UsiOptType> for UsiOptType
impl PartialEq<UsiOptType> for UsiOptType
source§fn eq(&self, other: &UsiOptType) -> bool
fn eq(&self, other: &UsiOptType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl ToUsiCommand<String, UsiOutputCreateError> for UsiOptType
impl ToUsiCommand<String, UsiOutputCreateError> for UsiOptType
fn to_usi_command(&self) -> Result<String, UsiOutputCreateError>
impl Eq for UsiOptType
impl StructuralEq for UsiOptType
impl StructuralPartialEq for UsiOptType
Auto Trait Implementations§
impl RefUnwindSafe for UsiOptType
impl Send for UsiOptType
impl Sync for UsiOptType
impl Unpin for UsiOptType
impl UnwindSafe for UsiOptType
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