pub struct Onboarding {
pub mode: UserMode,
pub lessons: Vec<Lesson>,
}Fields§
§mode: UserMode§lessons: Vec<Lesson>Implementations§
Source§impl Onboarding
impl Onboarding
Sourcepub fn run_interactive(&self) -> Result<()>
pub fn run_interactive(&self) -> Result<()>
Run interactive tutorial
Sourcepub fn detect_mode(config: &Config) -> UserMode
pub fn detect_mode(config: &Config) -> UserMode
Detect user mode from config or interactive choice
Sourcepub fn friendly_error(error_type: &str, context: &str) -> String
pub fn friendly_error(error_type: &str, context: &str) -> String
Generate friendly error messages
Sourcepub fn examples_gallery() -> Vec<(&'static str, &'static str)>
pub fn examples_gallery() -> Vec<(&'static str, &'static str)>
Examples gallery
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Onboarding
impl RefUnwindSafe for Onboarding
impl Send for Onboarding
impl Sync for Onboarding
impl Unpin for Onboarding
impl UnsafeUnpin for Onboarding
impl UnwindSafe for Onboarding
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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