pub struct TaskIndicator {
pub icon: TaskIcon,
pub label: String,
pub progress_bar: Option<String>,
pub eta: Option<String>,
pub foreground: bool,
}Expand description
Indicator style for chat display.
Fields§
§icon: TaskIconThe icon to show
label: StringShort label
progress_bar: Option<String>Optional progress bar (width in chars)
eta: Option<String>Optional time remaining
foreground: boolWhether this is the foreground task
Implementations§
Trait Implementations§
Source§impl Clone for TaskIndicator
impl Clone for TaskIndicator
Source§fn clone(&self) -> TaskIndicator
fn clone(&self) -> TaskIndicator
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 moreAuto Trait Implementations§
impl Freeze for TaskIndicator
impl RefUnwindSafe for TaskIndicator
impl Send for TaskIndicator
impl Sync for TaskIndicator
impl Unpin for TaskIndicator
impl UnsafeUnpin for TaskIndicator
impl UnwindSafe for TaskIndicator
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