Struct ooxml::packaging::content_type::ContentTypes [−][src]
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]
&mut self,
extension: String,
content_type: ContentType
)
pub fn add_override_element(
&mut self,
part_name: String,
content_type: ContentType
)
[src]
&mut self,
part_name: String,
content_type: ContentType
)
pub fn is_empty(&self) -> bool
[src]
Trait Implementations
impl Clone for ContentTypes
[src]
fn clone(&self) -> ContentTypes
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ContentTypes
[src]
impl Default for ContentTypes
[src]
fn default() -> ContentTypes
[src]
impl<'de> Deserialize<'de> for ContentTypes
[src]
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
D: Deserializer<'de>,
impl Display for ContentTypes
[src]
impl PartialEq<ContentTypes> for ContentTypes
[src]
fn eq(&self, other: &ContentTypes) -> bool
[src]
fn ne(&self, other: &ContentTypes) -> bool
[src]
impl StructuralPartialEq for ContentTypes
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContentTypes
impl Send for ContentTypes
impl Sync for ContentTypes
impl Unpin for ContentTypes
impl UnwindSafe for ContentTypes
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> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,