pub struct CreateWizard {
pub step: CreateWizardStep,
pub device_types: Vec<DeviceType>,
pub runtimes: Vec<Runtime>,
pub device_type_index: i64,
pub device_type_scroll_offset: i64,
pub runtime_index: i64,
pub runtime_scroll_offset: i64,
pub device_type_filter: String,
pub is_device_type_filter_focused: bool,
pub error: Option<String>,
}Fields§
§step: CreateWizardStep§device_types: Vec<DeviceType>§runtimes: Vec<Runtime>§device_type_index: i64§device_type_scroll_offset: i64§runtime_index: i64§runtime_scroll_offset: i64§device_type_filter: String§is_device_type_filter_focused: bool§error: Option<String>Implementations§
Source§impl CreateWizard
impl CreateWizard
pub fn new() -> Self
pub fn viewport(rows: i64) -> i64
Sourcepub fn device_type_viewport(&self, rows: i64) -> i64
pub fn device_type_viewport(&self, rows: i64) -> i64
Device-type list viewport accounting for the filter banner (one row). The reducer’s scroll math and the view’s row clamp must agree on this number — otherwise the selected row can sit just off the bottom edge.
pub fn visible_device_types(&self) -> Vec<&DeviceType>
pub fn selected_device_type(&self) -> Option<&DeviceType>
pub fn selected_runtime(&self) -> Option<&Runtime>
pub fn default_name(&self) -> String
Trait Implementations§
Source§impl Clone for CreateWizard
impl Clone for CreateWizard
Source§fn clone(&self) -> CreateWizard
fn clone(&self) -> CreateWizard
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateWizard
impl Debug for CreateWizard
Source§impl Default for CreateWizard
impl Default for CreateWizard
Source§fn default() -> CreateWizard
fn default() -> CreateWizard
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateWizard
impl PartialEq for CreateWizard
impl StructuralPartialEq for CreateWizard
Auto Trait Implementations§
impl Freeze for CreateWizard
impl RefUnwindSafe for CreateWizard
impl Send for CreateWizard
impl Sync for CreateWizard
impl Unpin for CreateWizard
impl UnsafeUnpin for CreateWizard
impl UnwindSafe for CreateWizard
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> 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