pub struct GenerateView {
pub rows: Vec<ModelRow>,
pub selected: usize,
pub prompt: String,
pub directory: String,
pub seed: String,
pub focus: Field,
pub port: u16,
pub bypass: bool,
pub output_dir: PathBuf,
pub saved: Vec<PathBuf>,
/* private fields */
}Fields§
§rows: Vec<ModelRow>§selected: usize§prompt: String§directory: String§seed: String§focus: Field§port: u16§bypass: bool§output_dir: PathBuf§saved: Vec<PathBuf>Implementations§
Source§impl GenerateView
impl GenerateView
pub fn new(rows: Vec<ModelRow>, output_dir: PathBuf) -> Self
pub fn running(&self) -> bool
pub fn status_text(&self) -> String
pub fn log_lines(&self) -> impl Iterator<Item = &String>
Sourcepub fn options(&self) -> Result<NativeOptions, String>
pub fn options(&self) -> Result<NativeOptions, String>
Builds validated options or explains what is missing.
Auto Trait Implementations§
impl Forget for GenerateView
impl Freeze for GenerateView
impl RefUnwindSafe for GenerateView
impl Send for GenerateView
impl Sync for GenerateView
impl Unpin for GenerateView
impl UnsafeUnpin for GenerateView
impl UnwindSafe for GenerateView
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> 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