pub struct StackOption {
pub id: Stack,
pub label: String,
pub version: Option<String>,
pub disabled: Option<String>,
}Expand description
A stack’s tool on this machine.
Fields§
§id: StackThe stack.
label: StringHow the sheet names it.
version: Option<String>The tool’s version when installed.
disabled: Option<String>Why it cannot be chosen (its tool is missing), with the install hint.
Trait Implementations§
Source§impl Clone for StackOption
impl Clone for StackOption
Source§impl Debug for StackOption
impl Debug for StackOption
Source§impl<'de> Deserialize<'de> for StackOption
impl<'de> Deserialize<'de> for StackOption
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
impl Eq for StackOption
Source§impl JsonSchema for StackOption
impl JsonSchema for StackOption
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for StackOption
impl PartialEq for StackOption
Source§impl Serialize for StackOption
impl Serialize for StackOption
impl StructuralPartialEq for StackOption
Auto Trait Implementations§
impl Freeze for StackOption
impl RefUnwindSafe for StackOption
impl Send for StackOption
impl Sync for StackOption
impl Unpin for StackOption
impl UnsafeUnpin for StackOption
impl UnwindSafe for StackOption
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