pub struct SheetLayout {
pub name: String,
pub hidden: bool,
pub cells: Vec<CellLayout>,
pub merges: Vec<String>,
pub col_widths: Vec<(u16, f64)>,
pub hidden_cols: Vec<u16>,
}Expand description
One captured sheet: its name + visibility + every captured cell + the merges (A1 ranges) + the per-column widths + the hidden columns.
Fields§
§name: StringThe sheet name (e.g. "7_Quote").
true iff the sheet is hidden (or very-hidden) in the source workbook.
cells: Vec<CellLayout>Every captured cell on the sheet.
merges: Vec<String>Merged-cell ranges as A1 strings (e.g. "A1:B2").
col_widths: Vec<(u16, f64)>Per-column widths as (1-based col index, width) pairs.
The 1-based column indices flagged hidden.
Trait Implementations§
Source§impl Clone for SheetLayout
impl Clone for SheetLayout
Source§fn clone(&self) -> SheetLayout
fn clone(&self) -> SheetLayout
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 SheetLayout
impl Debug for SheetLayout
Source§impl<'de> Deserialize<'de> for SheetLayout
impl<'de> Deserialize<'de> for SheetLayout
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 JsonSchema for SheetLayout
impl JsonSchema for SheetLayout
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SheetLayout
impl PartialEq for SheetLayout
Source§fn eq(&self, other: &SheetLayout) -> bool
fn eq(&self, other: &SheetLayout) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SheetLayout
impl Serialize for SheetLayout
impl StructuralPartialEq for SheetLayout
Auto Trait Implementations§
impl Freeze for SheetLayout
impl RefUnwindSafe for SheetLayout
impl Send for SheetLayout
impl Sync for SheetLayout
impl Unpin for SheetLayout
impl UnsafeUnpin for SheetLayout
impl UnwindSafe for SheetLayout
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