pub struct SpinnerOptions {
pub text: String,
pub prefix_text: String,
pub suffix_text: String,
pub color: Option<Color>,
pub spinner: SpinnerStyle,
pub indent: usize,
pub hide_cursor: bool,
pub enabled: bool,
pub stream: Stream,
}Fields§
§text: String§prefix_text: String§suffix_text: String§color: Option<Color>§spinner: SpinnerStyle§indent: usize§hide_cursor: bool§enabled: bool§stream: StreamImplementations§
Source§impl SpinnerOptions
impl SpinnerOptions
pub fn new(text: impl Into<String>) -> Self
pub fn builder() -> SpinnerBuilder
pub fn with_text(self, text: impl Into<String>) -> Self
pub fn with_prefix_text(self, text: impl Into<String>) -> Self
pub fn with_suffix_text(self, text: impl Into<String>) -> Self
pub fn with_color(self, color: Option<Color>) -> Self
pub fn with_spinner(self, spinner: SpinnerStyle) -> Self
pub fn with_indent(self, indent: usize) -> Self
pub fn with_hide_cursor(self, hide_cursor: bool) -> Self
pub fn with_enabled(self, enabled: bool) -> Self
pub fn with_stream(self, stream: Stream) -> Self
Trait Implementations§
Source§impl Clone for SpinnerOptions
impl Clone for SpinnerOptions
Source§impl Debug for SpinnerOptions
impl Debug for SpinnerOptions
Auto Trait Implementations§
impl Forget for SpinnerOptions
impl Freeze for SpinnerOptions
impl Move for SpinnerOptions
impl RefUnwindSafe for SpinnerOptions
impl Send for SpinnerOptions
impl Sync for SpinnerOptions
impl Unpin for SpinnerOptions
impl UnsafeUnpin for SpinnerOptions
impl UnwindSafe for SpinnerOptions
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