pub struct FormState {
pub title: String,
pub status: String,
pub priority: String,
pub labels: String,
pub assignee: String,
pub estimate: String,
pub focus: FormFocus,
}Fields§
§title: String§status: String§priority: String§labels: String§assignee: String§estimate: String§focus: FormFocusImplementations§
Source§impl FormState
impl FormState
pub fn new(default_status: &str) -> Self
pub fn with_default_assignee( default_status: &str, default_assignee: &str, ) -> Self
pub fn focused_value(&self) -> &str
pub fn focused_value_mut(&mut self) -> &mut String
pub fn insert_char(&mut self, c: char)
pub fn delete_char(&mut self)
pub fn move_focus_next(&mut self)
pub fn move_focus_prev(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormState
impl RefUnwindSafe for FormState
impl Send for FormState
impl Sync for FormState
impl Unpin for FormState
impl UnsafeUnpin for FormState
impl UnwindSafe for FormState
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