pub struct OptionDecl {
pub name: String,
pub kind: String,
pub choices: Vec<String>,
pub least: Option<i64>,
pub most: Option<i64>,
pub default: String,
pub about: String,
}Expand description
An option the runtime takes on superfluid serve as --<runtime>-<name> <value>, and its
worker as --<name> <value>, as the worker’s report declares it.
Fields§
§name: String§kind: Stringint, float, on-off, choice (one of choices) or text.
choices: Vec<String>§least: Option<i64>The least an int or a float takes, when it has a floor.
most: Option<i64>The most an int takes, when it has a ceiling.
default: StringWhat the runtime does without it, as words for the help.
about: StringImplementations§
Trait Implementations§
Source§impl Clone for OptionDecl
impl Clone for OptionDecl
Source§impl Debug for OptionDecl
impl Debug for OptionDecl
impl Eq for OptionDecl
Source§impl PartialEq for OptionDecl
impl PartialEq for OptionDecl
impl StructuralPartialEq for OptionDecl
Auto Trait Implementations§
impl Freeze for OptionDecl
impl RefUnwindSafe for OptionDecl
impl Send for OptionDecl
impl Sync for OptionDecl
impl Unpin for OptionDecl
impl UnsafeUnpin for OptionDecl
impl UnwindSafe for OptionDecl
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