pub struct ProgressBarConfig {
pub style: ProgressStyle,
pub filled_fg: Rgb,
pub empty_fg: Rgb,
pub bg: Rgb,
pub show_percentage: bool,
pub percentage_fg: Rgb,
pub label: Option<String>,
pub label_fg: Rgb,
}Expand description
Configuration for the progress bar widget.
Fields§
§style: ProgressStyleStyle of the bar.
filled_fg: RgbFilled portion color.
empty_fg: RgbEmpty portion color.
bg: RgbBackground color.
show_percentage: boolWhether to show percentage text.
percentage_fg: RgbPercentage text color.
label: Option<String>Optional label to show.
label_fg: RgbLabel color.
Trait Implementations§
Source§impl Clone for ProgressBarConfig
impl Clone for ProgressBarConfig
Source§fn clone(&self) -> ProgressBarConfig
fn clone(&self) -> ProgressBarConfig
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 ProgressBarConfig
impl Debug for ProgressBarConfig
Auto Trait Implementations§
impl Freeze for ProgressBarConfig
impl RefUnwindSafe for ProgressBarConfig
impl Send for ProgressBarConfig
impl Sync for ProgressBarConfig
impl Unpin for ProgressBarConfig
impl UnwindSafe for ProgressBarConfig
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