Struct ooxml::packaging::content_type::ContentTypes[][src]

pub struct ContentTypes { /* fields omitted */ }

Implementations

impl ContentTypes[src]

pub fn parse_from_xml_reader<R: BufRead>(reader: R) -> Self[src]

Parse content types data from an xml reader.

pub fn parse_from_xml_str(reader: &str) -> Self[src]

Parse content types data from an xml str.

pub fn add_content_type()[src]

follow OpenXML SDK function definitions, but not implemented.

pub fn get_content_type()[src]

pub fn delete_content_type(&mut self, _content_type: &ContentType)[src]

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

Save to file path.

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

Write to an writer

pub fn add_default_element(
    &mut self,
    extension: String,
    content_type: ContentType
)
[src]

pub fn add_override_element(
    &mut self,
    part_name: String,
    content_type: ContentType
)
[src]

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

Trait Implementations

impl Clone for ContentTypes[src]

impl Debug for ContentTypes[src]

impl Default for ContentTypes[src]

impl<'de> Deserialize<'de> for ContentTypes[src]

impl Display for ContentTypes[src]

impl PartialEq<ContentTypes> for ContentTypes[src]

impl StructuralPartialEq for ContentTypes[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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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> ToString for T where
    T: Display + ?Sized
[src]

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.