informationsea / xlsxwriter-rs

Excel file writer for Rust
https://crates.io/crates/xlsxwriter
Apache License 2.0
265 stars 44 forks source link

Make `CommentOptions` fields public and add `Default` implementation #53

Closed mdeloof closed 2 months ago

mdeloof commented 11 months ago

Hi, I wanted to use write_comment_opt() but couldn't find a way to construct CommentOptions as all the fields are private. I assumed this was an oversight (?) and went ahead and added pub to all the fields. Additionally, I added a Default implementation that matches what one would get using just write_comment().