Struct workflow_terminal::terminal::Options
source · pub struct Options {
pub prompt: Option<String>,
pub element: TargetElement,
}
Expand description
Terminal options
Fields§
§prompt: Option<String>
Default prompt (string such as "$ "
)
element: TargetElement
Target DOM element (when running under WASM)
Implementations§
source§impl Options
impl Options
sourcepub fn with_prompt(self, prompt: &str) -> Self
pub fn with_prompt(self, prompt: &str) -> Self
Set prompt string
sourcepub fn with_element(self, element: TargetElement) -> Self
pub fn with_element(self, element: TargetElement) -> Self
Set target element
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Options
impl !Send for Options
impl !Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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