pub struct AppProperties {
    pub namespaces: Namespaces,
    pub application: Option<Application>,
    pub heading_pairs: Option<HeadingPairs>,
    pub titles_of_parts: Option<TitlesOfParts>,
    pub lines: Option<String>,
    pub links_up_to_date: Option<String>,
    pub local_name: Option<String>,
    pub company: Option<String>,
    pub template: Option<String>,
    pub manager: Option<String>,
    pub pages: Option<String>,
}
Expand description

App properties

Fields§

§namespaces: Namespaces§application: Option<Application>§heading_pairs: Option<HeadingPairs>§titles_of_parts: Option<TitlesOfParts>§lines: Option<String>§links_up_to_date: Option<String>§local_name: Option<String>§company: Option<String>§template: Option<String>§manager: Option<String>§pages: Option<String>

Trait Implementations§

source§

impl Clone for AppProperties

source§

fn clone(&self) -> AppProperties

Returns a copy of the value. Read more
1.0.0 · source§

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

Performs copy-assignment from source. Read more
source§

impl Debug for AppProperties

source§

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

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

impl Default for AppProperties

source§

fn default() -> AppProperties

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

impl<'de> Deserialize<'de> for AppProperties

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 OpenXmlElementInfo for AppProperties

source§

fn tag_name() -> &'static str

XML tag name
source§

fn element_type() -> OpenXmlElementType

Element type
source§

fn as_bytes_start() -> BytesStart<'static>

Helper function for xml tag start.
source§

fn as_bytes_end() -> BytesEnd<'static>

Helper function for xml end.
source§

fn is_leaf_text_element() -> bool

Check element type
source§

fn is_root_element() -> bool

Check element type
source§

fn have_tag_name() -> bool

If the element have a tag name. Read more
source§

fn can_have_namespace_declarations() -> bool

If the element can have namespace declartions.
source§

fn can_have_attributes() -> bool

If the element can have attributes.
source§

fn can_have_children() -> bool

If the element can have children. Read more
source§

impl OpenXmlSerialize for AppProperties

source§

fn namespaces(&self) -> Option<Cow<'_, Namespaces>>

Get element namespaces, if have.
source§

fn attributes(&self) -> Option<Vec<Attribute<'_>>>

Get element attributes, if have.
source§

fn write_inner<W: Write>(&self, writer: W) -> Result<()>

Serialize to writer
source§

fn write_outter<W: Write>(&self, writer: W) -> Result<()>

Write outter xml to writer. Read more
source§

fn save_as<P: AsRef<Path>>(&self, path: P) -> Result<(), OoxmlError>

Write the standalone xml to path
source§

fn to_xml_bytes(&self) -> Result<Vec<u8>, OoxmlError>

Output the xml to an Vec block.
source§

fn to_xml_string(&self) -> Result<String, OoxmlError>

Output the xml to string.
source§

impl Serialize for AppProperties

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

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

impl OpenXmlDeserializeDefault for AppProperties

Auto Trait Implementations§

Blanket Implementations§

source§

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

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere 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> OpenXmlDeserialize for Twhere T: OpenXmlDeserializeDefault,

source§

fn from_xml_reader<R>(reader: R) -> Result<T, OoxmlError>where R: BufRead,

Parse from an xml stream reader
source§

fn from_xml_str(s: &str) -> Result<Self, OoxmlError>

Parse from an xml raw string.
source§

fn from_xml_file<P: AsRef<Path>>(path: P) -> Result<Self, OoxmlError>

Open a OpenXML file path, parse everything into the memory.
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for Twhere T: Clone,

§

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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.
source§

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