pub struct Properties<'a> { /* private fields */ }Implementations§
Source§impl<'a> Properties<'a>
impl<'a> Properties<'a>
Sourcepub fn set_title(&mut self, title: &'a str) -> &mut Self
pub fn set_title(&mut self, title: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 7)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_subject(&mut self, subject: &'a str) -> &mut Self
pub fn set_subject(&mut self, subject: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 8)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Examples found in repository?
examples/doc_properties.rs (line 9)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_manager(&mut self, manager: &'a str) -> &mut Self
pub fn set_manager(&mut self, manager: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 10)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_company(&mut self, company: &'a str) -> &mut Self
pub fn set_company(&mut self, company: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 11)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_category(&mut self, category: &'a str) -> &mut Self
pub fn set_category(&mut self, category: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 12)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_keywords(&mut self, keywords: &'a str) -> &mut Self
pub fn set_keywords(&mut self, keywords: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 13)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_comments(&mut self, comments: &'a str) -> &mut Self
pub fn set_comments(&mut self, comments: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 14)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Sourcepub fn set_status(&mut self, status: &'a str) -> &mut Self
pub fn set_status(&mut self, status: &'a str) -> &mut Self
Examples found in repository?
examples/doc_properties.rs (line 15)
3fn main() -> WorkbookResult<()> {
4 // Create a new workbook
5 let mut workbook = Workbook::new();
6 let mut properties = Properties::default();
7 properties.set_title("This is an example spreadsheet")
8 .set_subject("With document properties")
9 .set_author("pt")
10 .set_manager("example manager")
11 .set_company("example company")
12 .set_category("Example spreadsheets")
13 .set_keywords("Sample, Example, Properties")
14 .set_comments("Created with Rust")
15 .set_status("example status");
16 workbook.set_properties(&properties)?;
17 // Use the default worksheet
18 let worksheet = workbook.get_worksheet_mut(1)?;
19 worksheet.set_columns_width("A:A", 70.0)?;
20 worksheet.write("A1", "Select 'Workbook Properties' to see properties.")?;
21 workbook.save_as("examples/doc_properties.xlsx")?;
22 Ok(())
23}Trait Implementations§
Source§impl<'a> Default for Properties<'a>
impl<'a> Default for Properties<'a>
Source§fn default() -> Properties<'a>
fn default() -> Properties<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for Properties<'a>
impl<'a> RefUnwindSafe for Properties<'a>
impl<'a> Send for Properties<'a>
impl<'a> Sync for Properties<'a>
impl<'a> Unpin for Properties<'a>
impl<'a> UnwindSafe for Properties<'a>
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