Struct ooxml::packaging::package::OpenXmlPackage [−][src]
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]
&mut self,
uri: &str,
content_type: &ContentType,
data: &[u8]
) -> Result<(), OoxmlError>
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]
fn clone(&self) -> OpenXmlPackage
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for OpenXmlPackage
[src]
impl Default for OpenXmlPackage
[src]
fn default() -> OpenXmlPackage
[src]
Auto Trait Implementations
impl RefUnwindSafe for OpenXmlPackage
impl Send for OpenXmlPackage
impl Sync for OpenXmlPackage
impl Unpin for OpenXmlPackage
impl UnwindSafe for OpenXmlPackage
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,