pub struct PendingLabelMigration {
pub provider: String,
pub existing_label: String,
pub new_label: String,
pub focused: LabelMigrationField,
pub cursor_pos: usize,
}Expand description
State carried between step 1 (label both configs) and step 2 (fill in the new labeled config form) of the lazy-migration add flow.
Fields§
§provider: String§existing_label: StringUser-chosen label for the EXISTING (currently bare) config.
new_label: StringUser-chosen label for the NEW config being added.
focused: LabelMigrationFieldWhich field has focus in the label-migration screen.
cursor_pos: usizeCursor position (char index) within the focused field’s value.
Implementations§
Source§impl PendingLabelMigration
impl PendingLabelMigration
Sourcepub fn focused_value(&self) -> &str
pub fn focused_value(&self) -> &str
Get the focused field’s value.
Sourcepub fn focused_value_mut(&mut self) -> &mut String
pub fn focused_value_mut(&mut self) -> &mut String
Get the focused field’s value mutably.
Trait Implementations§
Source§impl Clone for PendingLabelMigration
impl Clone for PendingLabelMigration
Source§fn clone(&self) -> PendingLabelMigration
fn clone(&self) -> PendingLabelMigration
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 moreAuto Trait Implementations§
impl Freeze for PendingLabelMigration
impl RefUnwindSafe for PendingLabelMigration
impl Send for PendingLabelMigration
impl Sync for PendingLabelMigration
impl Unpin for PendingLabelMigration
impl UnsafeUnpin for PendingLabelMigration
impl UnwindSafe for PendingLabelMigration
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