pub struct ProgressBarOptions {
pub text: Option<String>,
pub show_percentage: bool,
}Expand description
Options for progress bars.
Fields§
§text: Option<String>Optional overlay text rendered inside the bar.
show_percentage: boolWhether to show a percentage when text is absent.
Trait Implementations§
Source§impl Clone for ProgressBarOptions
impl Clone for ProgressBarOptions
Source§fn clone(&self) -> ProgressBarOptions
fn clone(&self) -> ProgressBarOptions
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 ProgressBarOptions
impl Debug for ProgressBarOptions
Source§impl Default for ProgressBarOptions
impl Default for ProgressBarOptions
Source§fn default() -> ProgressBarOptions
fn default() -> ProgressBarOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ProgressBarOptions
impl RefUnwindSafe for ProgressBarOptions
impl Send for ProgressBarOptions
impl Sync for ProgressBarOptions
impl Unpin for ProgressBarOptions
impl UnsafeUnpin for ProgressBarOptions
impl UnwindSafe for ProgressBarOptions
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