pub struct SetupWizard {
pub testing: bool,
pub use_https: bool,
pub error: Option<String>,
/* private fields */
}Expand description
Interactive setup run before the main TUI when API_BASE_URL is missing.
Fields§
§testing: bool§use_https: bool§error: Option<String>Implementations§
Source§impl SetupWizard
impl SetupWizard
pub fn new() -> Self
pub fn new_auth_only(config: &Config) -> Self
pub fn render(&mut self, f: &mut Frame<'_>, area: Rect)
pub fn cursor_pos(&self, area: Rect) -> Option<(u16, u16)>
pub async fn try_connect_and_persist(&mut self, verbose: bool) -> Result<Config>
pub fn handle_key(&mut self, key: KeyEvent) -> Result<bool>
pub async fn run(self, verbose: bool) -> Result<Config>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SetupWizard
impl RefUnwindSafe for SetupWizard
impl Send for SetupWizard
impl Sync for SetupWizard
impl Unpin for SetupWizard
impl UnsafeUnpin for SetupWizard
impl UnwindSafe for SetupWizard
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