pub struct ProgressProps {Show 13 fields
pub progress_type: ProgressType,
pub percentage: u32,
pub status: ProgressStatus,
pub indeterminate: bool,
pub stroke_width: u32,
pub text_inside: bool,
pub width: u32,
pub show_text: bool,
pub color: Option<String>,
pub striped: bool,
pub striped_flow: bool,
pub class: Option<String>,
pub style: Option<String>,
}Expand description
Progress props
Fields§
§progress_type: ProgressTypeProgress type
percentage: u32Percentage (0-100)
status: ProgressStatusCurrent status
indeterminate: boolWhether to set indeterminate progress
stroke_width: u32Stroke width in pixels
text_inside: boolWhether to place percentage inside progress bar
width: u32Canvas width for circle/dashboard type
show_text: boolWhether to show percentage text
color: Option<String>Background color of progress bar
striped: boolWhether to show stripes
striped_flow: boolWhether stripes flow
class: Option<String>Additional CSS classes
style: Option<String>Inline styles
Implementations§
Source§impl ProgressProps
impl ProgressProps
Sourcepub fn builder() -> ProgressPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> ProgressPropsBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building ProgressProps.
On the builder, call .progress_type(...)(optional), .percentage(...)(optional), .status(...)(optional), .indeterminate(...)(optional), .stroke_width(...)(optional), .text_inside(...)(optional), .width(...)(optional), .show_text(...)(optional), .color(...)(optional), .striped(...)(optional), .striped_flow(...)(optional), .class(...)(optional), .style(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ProgressProps.
Trait Implementations§
Source§impl Clone for ProgressProps
impl Clone for ProgressProps
Source§fn clone(&self) -> ProgressProps
fn clone(&self) -> ProgressProps
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl PartialEq for ProgressProps
impl PartialEq for ProgressProps
Source§fn eq(&self, other: &ProgressProps) -> bool
fn eq(&self, other: &ProgressProps) -> bool
self and other values to be equal, and is used by ==.