Struct ooxml::packaging::package::OpenXmlPackage[][src]

pub struct OpenXmlPackage { /* fields omitted */ }

A common OpenXML package manager, compatible with any OpenXML Package Convertion

FIXME(@zitsen): A dirty dict representing data change should be added.

Implementations

impl OpenXmlPackage[src]

pub fn open<P: AsRef<Path>>(path: P) -> Result<Self, OoxmlError>[src]

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

pub fn from_reader<R: Read + Seek>(reader: R) -> Result<Self, OoxmlError>[src]

Parse OpenXML package from reader.

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

Save as file, write zip package for office document.

pub fn write<W: Write + Seek>(&self, writer: W) -> Result<(), OoxmlError>[src]

pub fn has_content_types(&self) -> bool[src]

pub fn has_relationships(&self) -> bool[src]

pub fn is_dirty(&self, _uri: &str) -> bool[src]

A part is dirty if data has been changed.

pub fn get_part(&self, uri: &str) -> Option<&OpenXmlPart>[src]

Get OpenXML Part by uri.

pub fn create_part()[src]

pub fn flush()[src]

pub fn create_relationship()[src]

pub fn delete_relationship()[src]

pub fn get_relationships()[src]

pub fn get_relationships_by_type(_relationship_type: String)[src]

pub fn relationship_exist(&self, id: &str) -> bool[src]

pub fn create_part_core(&mut self, uri: &str, content_type: &ContentType)[src]

pub fn create_part_core_with_data(
    &mut self,
    uri: &str,
    content_type: &ContentType,
    data: &[u8]
) -> Result<(), OoxmlError>
[src]

pub fn delete_part_core(&mut self, uri: &str)[src]

Delete the part corresponding to the uri specified.

Delete the content type for this part if it was specified as an override.

Trait Implementations

impl Clone for OpenXmlPackage[src]

impl Debug for OpenXmlPackage[src]

impl Default for OpenXmlPackage[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.