pub struct SheetProtection {Show 13 fields
pub password: Option<PasswordHash>,
pub legacy_password_hash: Option<u64>,
pub select_locked: bool,
pub select_unlocked: bool,
pub format_cells: bool,
pub format_columns: bool,
pub format_rows: bool,
pub insert_columns: bool,
pub insert_rows: bool,
pub delete_columns: bool,
pub delete_rows: bool,
pub sort: bool,
pub autofilter: bool,
}Fields§
§password: Option<PasswordHash>Hash of the password (Excel-compatible, written to XLSX sheetProtection; never the
password itself).
legacy_password_hash: Option<u64>The internal hash older GridCraft JSON workbooks stored (password_hash); still
verified when unprotecting, never written for new passwords.
select_locked: bool§select_unlocked: bool§format_cells: bool§format_columns: bool§format_rows: bool§insert_columns: bool§insert_rows: bool§delete_columns: bool§delete_rows: bool§sort: bool§autofilter: boolTrait Implementations§
Source§impl Clone for SheetProtection
impl Clone for SheetProtection
Source§fn clone(&self) -> SheetProtection
fn clone(&self) -> SheetProtection
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 SheetProtection
impl Debug for SheetProtection
Source§impl Default for SheetProtection
impl Default for SheetProtection
Source§fn default() -> SheetProtection
fn default() -> SheetProtection
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SheetProtection
impl<'de> Deserialize<'de> for SheetProtection
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
Source§impl PartialEq for SheetProtection
impl PartialEq for SheetProtection
Source§impl Serialize for SheetProtection
impl Serialize for SheetProtection
impl StructuralPartialEq for SheetProtection
Auto Trait Implementations§
impl Freeze for SheetProtection
impl RefUnwindSafe for SheetProtection
impl Send for SheetProtection
impl Sync for SheetProtection
impl Unpin for SheetProtection
impl UnsafeUnpin for SheetProtection
impl UnwindSafe for SheetProtection
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