Skip to main content

TableXml

Struct TableXml 

Source
pub struct TableXml {
Show 30 fields pub xmlns: String, pub id: u32, pub name: String, pub display_name: String, pub comment: Option<String>, pub reference: String, pub table_type: Option<String>, pub header_row_count: Option<u32>, pub insert_row: Option<bool>, pub insert_row_shift: Option<bool>, pub totals_row_count: Option<u32>, pub totals_row_shown: Option<bool>, pub published: Option<bool>, pub header_row_dxf_id: Option<u32>, pub data_dxf_id: Option<u32>, pub totals_row_dxf_id: Option<u32>, pub header_row_border_dxf_id: Option<u32>, pub table_border_dxf_id: Option<u32>, pub totals_row_border_dxf_id: Option<u32>, pub header_row_cell_style: Option<String>, pub data_cell_style: Option<String>, pub totals_row_cell_style: Option<String>, pub connection_id: Option<u32>, pub extra_attributes: Vec<(String, String)>, pub auto_filter: Option<TableAutoFilter>, pub sort_state: Option<XmlFragment>, pub table_columns: TableColumnsXml, pub table_style_info: Option<TableStyleInfoXml>, pub ext_lst: Option<XmlFragment>, pub source: TableSource,
}
Expand description

Root element for a table definition part (xl/tables/table{N}.xml).

Fields§

§xmlns: String§id: u32§name: String§display_name: String§comment: Option<String>§reference: String§table_type: Option<String>§header_row_count: Option<u32>§insert_row: Option<bool>§insert_row_shift: Option<bool>§totals_row_count: Option<u32>§totals_row_shown: Option<bool>§published: Option<bool>§header_row_dxf_id: Option<u32>§data_dxf_id: Option<u32>§totals_row_dxf_id: Option<u32>§header_row_border_dxf_id: Option<u32>§table_border_dxf_id: Option<u32>§totals_row_border_dxf_id: Option<u32>§header_row_cell_style: Option<String>§data_cell_style: Option<String>§totals_row_cell_style: Option<String>§connection_id: Option<u32>§extra_attributes: Vec<(String, String)>

Prefixed root attributes (namespace declarations, mc:Ignorable, xr:uid). Only names listed in the serializer allow-list are written.

§auto_filter: Option<TableAutoFilter>§sort_state: Option<XmlFragment>

Opaque sortState element, preserved verbatim.

§table_columns: TableColumnsXml§table_style_info: Option<TableStyleInfoXml>§ext_lst: Option<XmlFragment>

Opaque extLst element, preserved verbatim.

§source: TableSource

Original part text captured by parse_table_xml.

Implementations§

Source§

impl TableXml

Source

pub fn unchanged_source(&self) -> Option<&str>

Return the original part text when the table has not been modified since parse_table_xml produced it; None otherwise.

Trait Implementations§

Source§

impl Clone for TableXml

Source§

fn clone(&self) -> TableXml

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TableXml

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for TableXml

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for TableXml

Source§

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 TableXml

Source§

fn eq(&self, other: &TableXml) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for TableXml

Source§

fn serialize<S: Serializer>(&self, serializer: S) -> Result<S::Ok, S::Error>

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for TableXml

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.