pub struct SheetProtectionConfig {Show 14 fields
pub password: Option<String>,
pub select_locked_cells: bool,
pub select_unlocked_cells: bool,
pub format_cells: bool,
pub format_columns: bool,
pub format_rows: bool,
pub insert_columns: bool,
pub insert_rows: bool,
pub insert_hyperlinks: bool,
pub delete_columns: bool,
pub delete_rows: bool,
pub sort: bool,
pub auto_filter: bool,
pub pivot_tables: bool,
}Expand description
Configuration for sheet protection.
All boolean fields default to false, meaning the corresponding action is
forbidden when protection is enabled. Set a field to true to allow that
action even when the sheet is protected.
Fields§
§password: Option<String>Optional password. Hashed with the legacy Excel algorithm.
select_locked_cells: boolAllow selecting locked cells.
select_unlocked_cells: boolAllow selecting unlocked cells.
format_cells: boolAllow formatting cells.
format_columns: boolAllow formatting columns.
format_rows: boolAllow formatting rows.
insert_columns: boolAllow inserting columns.
insert_rows: boolAllow inserting rows.
insert_hyperlinks: boolAllow inserting hyperlinks.
delete_columns: boolAllow deleting columns.
delete_rows: boolAllow deleting rows.
sort: boolAllow sorting.
auto_filter: boolAllow using auto-filter.
pivot_tables: boolAllow using pivot tables.
Trait Implementations§
Source§impl Clone for SheetProtectionConfig
impl Clone for SheetProtectionConfig
Source§fn clone(&self) -> SheetProtectionConfig
fn clone(&self) -> SheetProtectionConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 SheetProtectionConfig
impl Debug for SheetProtectionConfig
Source§impl Default for SheetProtectionConfig
impl Default for SheetProtectionConfig
Source§fn default() -> SheetProtectionConfig
fn default() -> SheetProtectionConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SheetProtectionConfig
impl RefUnwindSafe for SheetProtectionConfig
impl Send for SheetProtectionConfig
impl Sync for SheetProtectionConfig
impl Unpin for SheetProtectionConfig
impl UnwindSafe for SheetProtectionConfig
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