pub struct TutorialCtx {
pub dotfiles_root: String,
pub via: String,
pub packs: Vec<TutorialPack>,
pub chosen_pack: Option<String>,
pub chosen_pack_kind: Option<String>,
pub has_shell_files: bool,
pub has_install_files: bool,
pub status_output: Option<String>,
pub dry_run_output: Option<String>,
pub up_output: Option<String>,
pub shell_integration: Option<ShellIntegration>,
pub eval_line: String,
}Expand description
Serializable context passed to step templates. The CLI driver mutates this between steps; templates read fields by name.
Fields§
§dotfiles_root: String§via: String§packs: Vec<TutorialPack>§chosen_pack: Option<String>§chosen_pack_kind: Option<String>§has_shell_files: bool§has_install_files: bool§status_output: Option<String>§dry_run_output: Option<String>§up_output: Option<String>§shell_integration: Option<ShellIntegration>§eval_line: StringTrait Implementations§
Source§impl Clone for TutorialCtx
impl Clone for TutorialCtx
Source§fn clone(&self) -> TutorialCtx
fn clone(&self) -> TutorialCtx
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TutorialCtx
impl Debug for TutorialCtx
Source§impl Default for TutorialCtx
impl Default for TutorialCtx
Source§fn default() -> TutorialCtx
fn default() -> TutorialCtx
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TutorialCtx
impl RefUnwindSafe for TutorialCtx
impl Send for TutorialCtx
impl Sync for TutorialCtx
impl Unpin for TutorialCtx
impl UnsafeUnpin for TutorialCtx
impl UnwindSafe for TutorialCtx
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