pub struct TasksConfig {
pub max_groupsize: usize,
pub max_depth: usize,
pub separator: String,
pub use_colors: bool,
}Fields§
§max_groupsize: usize§max_depth: usize§separator: String§use_colors: boolTrait Implementations§
Source§impl Debug for TasksConfig
impl Debug for TasksConfig
Source§impl Default for TasksConfig
impl Default for TasksConfig
Source§impl Parse for TasksConfig
impl Parse for TasksConfig
Source§fn parse(input: ParseStream<'_>) -> Result<Self>
fn parse(input: ParseStream<'_>) -> Result<Self>
Parses the task configuration parameters inside tasks(...).
All parameters are optional and will use default values if not specified:
max_groupsize: defaults to 5max_depth: defaults to 20separator: defaults to “.”
§Example
ⓘ
tasks(max_groupsize=10, separator="/")
// Results in: max_groupsize=10, max_depth=20 (default), separator="/"§Errors
Returns an error if:
- An unknown parameter name is encountered
- A parameter value has the wrong type (e.g., string instead of integer)
- The syntax is malformed (missing
=, invalid literals, etc.)
Auto Trait Implementations§
impl Freeze for TasksConfig
impl RefUnwindSafe for TasksConfig
impl Send for TasksConfig
impl Sync for TasksConfig
impl Unpin for TasksConfig
impl UnsafeUnpin for TasksConfig
impl UnwindSafe for TasksConfig
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