pub struct Component {
pub id: String,
pub name: String,
pub description: String,
pub script: String,
pub category: Category,
pub required: bool,
pub selected: bool,
pub installed: bool,
pub progress: f32,
pub estimate: String,
pub needs_sudo: bool,
}Fields§
§id: String§name: String§description: String§script: StringScript path relative to scripts_dir, or empty string for native Rust modules.
For native Rust components, this field is empty and the installer
dispatches to the corresponding Rust module via
installers::components::is_native_component().
§Validation Assertions
- VAL-INSTALL-037: Component.script no longer holds .sh filenames for ported components
- VAL-INSTALL-038: state.rs supports native module routing
- VAL-INSTALL-040: Verification/performance components use native routing
category: Category§required: bool§selected: bool§installed: bool§progress: f32§estimate: String§needs_sudo: boolWhether this component requires sudo to install
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Component
impl RefUnwindSafe for Component
impl Send for Component
impl Sync for Component
impl Unpin for Component
impl UnsafeUnpin for Component
impl UnwindSafe for Component
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more