pub struct MermaidRenderer {
pub show_sections: bool,
pub show_critical: bool,
pub show_completion: bool,
pub date_format: String,
pub use_dependencies: bool,
pub exclude_weekends: bool,
pub display_mode: DisplayMode,
pub label_width: usize,
}Expand description
MermaidJS Gantt chart renderer
Fields§
§show_sections: boolWhether to show sections (group by parent task)
show_critical: boolWhether to mark critical path tasks
show_completion: boolWhether to show task completion status
date_format: StringDate format (MermaidJS format string)
use_dependencies: boolWhether to use after syntax for dependencies
exclude_weekends: boolExclude weekends from duration calculation
display_mode: DisplayModeDisplay mode for task labels
label_width: usizeMaximum label width in characters
Implementations§
Source§impl MermaidRenderer
impl MermaidRenderer
pub fn new() -> Self
Sourcepub fn no_sections(self) -> Self
pub fn no_sections(self) -> Self
Disable sections grouping
Sourcepub fn no_critical(self) -> Self
pub fn no_critical(self) -> Self
Disable critical path highlighting
Sourcepub fn no_completion(self) -> Self
pub fn no_completion(self) -> Self
Disable completion status
Sourcepub fn absolute_dates(self) -> Self
pub fn absolute_dates(self) -> Self
Use absolute dates instead of after dependencies
Sourcepub fn date_format(self, format: impl Into<String>) -> Self
pub fn date_format(self, format: impl Into<String>) -> Self
Set custom date format
Sourcepub fn exclude_weekends(self) -> Self
pub fn exclude_weekends(self) -> Self
Exclude weekends (use excludes directive)
Sourcepub fn display_mode(self, mode: DisplayMode) -> Self
pub fn display_mode(self, mode: DisplayMode) -> Self
Configure display mode for task labels
Sourcepub fn label_width(self, width: usize) -> Self
pub fn label_width(self, width: usize) -> Self
Configure maximum label width in characters
Trait Implementations§
Source§impl Clone for MermaidRenderer
impl Clone for MermaidRenderer
Source§fn clone(&self) -> MermaidRenderer
fn clone(&self) -> MermaidRenderer
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MermaidRenderer
impl Debug for MermaidRenderer
Source§impl Default for MermaidRenderer
impl Default for MermaidRenderer
Auto Trait Implementations§
impl Freeze for MermaidRenderer
impl RefUnwindSafe for MermaidRenderer
impl Send for MermaidRenderer
impl Sync for MermaidRenderer
impl Unpin for MermaidRenderer
impl UnsafeUnpin for MermaidRenderer
impl UnwindSafe for MermaidRenderer
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