pub struct ExcelConfig {
pub scale: String,
pub currency: String,
pub auto_fit: bool,
pub weeks: Option<u32>,
pub days: Option<u32>,
pub hours_per_day: f64,
pub include_summary: bool,
pub show_dependencies: bool,
}Expand description
Configuration for Excel export (RFC-0009)
This struct is designed for JSON serialization to support WASM/browser usage.
All fields have sensible defaults, so ExcelConfig::default() works well.
§Example
ⓘ
use utf8proj_render::ExcelConfig;
let config = ExcelConfig {
scale: "daily".to_string(),
currency: "USD".to_string(),
auto_fit: true,
..Default::default()
};
let renderer = config.to_renderer();Fields§
§scale: StringScale: “daily” or “weekly” (default: “weekly”)
currency: StringCurrency symbol (default: “EUR”)
auto_fit: boolAuto-fit timeframe to project duration (default: true)
weeks: Option<u32>Number of weeks (only used if auto_fit=false and scale=weekly)
days: Option<u32>Number of days (only used if auto_fit=false and scale=daily)
hours_per_day: f64Working hours per day (default: 8.0)
include_summary: boolInclude executive summary sheet (default: true)
show_dependencies: boolShow dependency columns for formula-driven scheduling (default: true)
Implementations§
Source§impl ExcelConfig
impl ExcelConfig
Sourcepub fn to_renderer(&self) -> ExcelRenderer
pub fn to_renderer(&self) -> ExcelRenderer
Convert this configuration into an ExcelRenderer
Trait Implementations§
Source§impl Clone for ExcelConfig
impl Clone for ExcelConfig
Source§fn clone(&self) -> ExcelConfig
fn clone(&self) -> ExcelConfig
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 ExcelConfig
impl Debug for ExcelConfig
Source§impl Default for ExcelConfig
impl Default for ExcelConfig
Source§impl<'de> Deserialize<'de> for ExcelConfig
impl<'de> Deserialize<'de> for ExcelConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ExcelConfig
impl RefUnwindSafe for ExcelConfig
impl Send for ExcelConfig
impl Sync for ExcelConfig
impl Unpin for ExcelConfig
impl UnsafeUnpin for ExcelConfig
impl UnwindSafe for ExcelConfig
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